refactor(emacs): Cleanup
This commit is contained in:
@@ -64,10 +64,8 @@
|
||||
"If any Evil Ex search highlightings are active, remove them and return t.
|
||||
Otherwise, nil."
|
||||
(let ((names '(evil-ex-substitute evil-ex-search)))
|
||||
(if (-any #'evil-ex-hl-active-p names)
|
||||
(progn (evil-ex-nohighlight)
|
||||
t)
|
||||
nil)))
|
||||
(when (-any #'evil-ex-hl-active-p names)
|
||||
(prog1 t (evil-ex-nohighlight)))))
|
||||
(add-hook 'syd-escape-hook #'syd-evil-nohl-h)
|
||||
|
||||
(general-def
|
||||
|
||||
@@ -113,6 +113,11 @@
|
||||
:maps 'help-mode-map
|
||||
"<escape>" #'syd/escape)
|
||||
|
||||
;; Insert
|
||||
(general-def
|
||||
:prefix-map 'syd-leader-insert-map
|
||||
"u" #'insert-char)
|
||||
|
||||
;; Leader
|
||||
(general-def
|
||||
:keymaps 'syd-leader-map
|
||||
@@ -127,7 +132,8 @@
|
||||
"f" `("File" . ,syd-leader-file-map)
|
||||
"s" `("Search" . ,syd-leader-search-map)
|
||||
"h" `("Help" . ,help-map)
|
||||
"n" `("Notes" . ,syd-leader-notes-map)))
|
||||
"n" `("Notes" . ,syd-leader-notes-map)
|
||||
"i" `("Insert" . ,syd-leader-insert-map)))
|
||||
|
||||
(syd-keybinds-initialise)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user