refactor(emacs): Cleanup

This commit is contained in:
Madeleine Sydney
2025-02-17 02:51:21 -07:00
parent 584cff0bd2
commit 0c2e7d7d6d
2 changed files with 55 additions and 51 deletions

View File

@@ -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

View File

@@ -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)