mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Remove keyboard vim motion input from dashboard
This commit is contained in:
parent
a27ddf7d71
commit
d9f9a9b241
|
@ -105,6 +105,18 @@
|
||||||
"I’ll tell you a DNS joke but it could take 24 hours for everyone to get it."
|
"I’ll 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'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?"))
|
"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
|
(setq dashboard-navigator-buttons
|
||||||
`(;; line1
|
`(;; line1
|
||||||
( (,"Roam" "" "" (lambda (&rest _)) 'org-formula)
|
( (,"Roam" "" "" (lambda (&rest _)) 'org-formula)
|
||||||
|
|
|
@ -168,6 +168,18 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu
|
||||||
"I’ll tell you a DNS joke but it could take 24 hours for everyone to get it."
|
"I’ll 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'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?"))
|
"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
|
(setq dashboard-navigator-buttons
|
||||||
`(;; line1
|
`(;; line1
|
||||||
( (,"Roam" "" "" (lambda (&rest _)) 'org-formula)
|
( (,"Roam" "" "" (lambda (&rest _)) 'org-formula)
|
||||||
|
|
Loading…
Reference in a new issue