Remove keyboard vim motion input from dashboard

This commit is contained in:
Emmet 2024-06-22 22:19:37 -05:00
parent a27ddf7d71
commit d9f9a9b241
2 changed files with 24 additions and 0 deletions

View file

@ -105,6 +105,18 @@
"Ill tell you a DNS joke but it could take 24 hours for everyone to get it."
"I'd tell you a UDP joke, but you might not get it."
"I'll tell you a TCP joke. Do you want to hear it?"))
;; Remove basic evil input and cursors from dashboard
(defun disable-cursor()
(setq-local evil-normal-state-cursor '(bar . 0))
(hl-line-mode -1)
)
(add-hook 'dashboard-mode-hook 'disable-cursor)
(evil-define-key 'normal dashboard-mode-map
"j" 'evil-normal-state
"k" 'evil-normal-state
"h" 'evil-normal-state
"l" 'evil-normal-state)
(setq dashboard-navigator-buttons
`(;; line1
( (,"Roam" "" "" (lambda (&rest _)) 'org-formula)

View file

@ -168,6 +168,18 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu
"Ill tell you a DNS joke but it could take 24 hours for everyone to get it."
"I'd tell you a UDP joke, but you might not get it."
"I'll tell you a TCP joke. Do you want to hear it?"))
;; Remove basic evil input and cursors from dashboard
(defun disable-cursor()
(setq-local evil-normal-state-cursor '(bar . 0))
(hl-line-mode -1)
)
(add-hook 'dashboard-mode-hook 'disable-cursor)
(evil-define-key 'normal dashboard-mode-map
"j" 'evil-normal-state
"k" 'evil-normal-state
"h" 'evil-normal-state
"l" 'evil-normal-state)
(setq dashboard-navigator-buttons
`(;; line1
( (,"Roam" "" "" (lambda (&rest _)) 'org-formula)