Compare commits
4 Commits
6c1831ab96
...
2026
| Author | SHA1 | Date | |
|---|---|---|---|
| eacc765fc9 | |||
| c4ce8f1417 | |||
| d35693b7d3 | |||
| 02ed88ae45 |
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
eln-cache
|
||||
elpa
|
||||
*
|
||||
!*.el
|
||||
!user-lisp
|
||||
|
||||
8
init.el
8
init.el
@@ -24,6 +24,8 @@
|
||||
(keymap-global-set "C-c e i" #'hgh/edit-init-file)
|
||||
(keymap-global-set "C-," #'hgh/duplicate-dwim)
|
||||
|
||||
(keymap-global-set "C-h h" #'eldoc)
|
||||
|
||||
(setq
|
||||
custom-file "~/.emacs.d/custom.el"
|
||||
make-backup-files nil
|
||||
@@ -46,6 +48,8 @@
|
||||
(tool-bar-mode -1)
|
||||
(scroll-bar-mode -1)
|
||||
(global-hl-line-mode 1)
|
||||
(global-eldoc-mode 1)
|
||||
(global-display-line-numbers-mode 1)
|
||||
|
||||
(defun hgh/untabify-buffer ()
|
||||
(interactive)
|
||||
@@ -82,8 +86,8 @@
|
||||
(mc/always-run-for-all t)
|
||||
:bind (("C->" . mc/mark-next-like-this)
|
||||
("C-<" . mc/mark-previous-like-this)
|
||||
("C-c C-<" . mc/mark-all-like-this)
|
||||
("C-c C->" . mc/mark-lines))
|
||||
("C-c C-<" . mc/mark-all-like-this)
|
||||
("C-c C->" . mc/mark-lines))
|
||||
:init
|
||||
(advice-add 'mc/mark-next-like-this :before #'hgh/set-box-cursor)
|
||||
(advice-add 'mc/mark-previous-like-this :before #'hgh/set-box-cursor)
|
||||
|
||||
15
utils.el
Normal file
15
utils.el
Normal file
@@ -0,0 +1,15 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
(defun hgh/edit-init-file ()
|
||||
(interactive)
|
||||
(find-file user-init-file))
|
||||
|
||||
(defun hgh/duplicate-dwim ()
|
||||
(interactive)
|
||||
(duplicate-dwim)
|
||||
(next-line))
|
||||
|
||||
(defun hgh/set-bar-cursor(&rest args)
|
||||
(setq-local cursor-type 'bar))
|
||||
|
||||
(defun hgh/set-box-cursor(&rest args)
|
||||
(setq-local cursor-type 'box))
|
||||
Reference in New Issue
Block a user