fix calfw: normal state + evil-define-key rebind (SPC=leader, q=bury, navigace funguje)
This commit is contained in:
26
config.el
26
config.el
@@ -1934,9 +1934,29 @@ current frame."
|
|||||||
(use-package! calfw-org
|
(use-package! calfw-org
|
||||||
:demand t
|
:demand t
|
||||||
:config
|
:config
|
||||||
;; Evil přebírá klávesy — calfw musí být v emacs-state (haji-ali fork)
|
;; calfw v normal state → SPC = Doom leader (SPC b d, SPC b b atd. fungují)
|
||||||
(evil-set-initial-state 'calfw-calendar-mode 'emacs)
|
;; V emacs-state SPC zachytí calfw lokální mapa → nelze použít Doom leader
|
||||||
(evil-set-initial-state 'calfw-details-mode 'emacs)
|
;; Řešení: normal state + explicitní rebind calfw navigace (overriduje evil defaults)
|
||||||
|
(evil-set-initial-state 'calfw-calendar-mode 'normal)
|
||||||
|
(evil-set-initial-state 'calfw-details-mode 'normal)
|
||||||
|
(evil-define-key 'normal calfw-calendar-mode-map
|
||||||
|
"h" #'calfw-navi-previous-day-command
|
||||||
|
"l" #'calfw-navi-next-day-command
|
||||||
|
"j" #'calfw-navi-next-week-command
|
||||||
|
"k" #'calfw-navi-previous-week-command
|
||||||
|
"n" #'calfw-navi-next-week-command
|
||||||
|
"p" #'calfw-navi-previous-week-command
|
||||||
|
"t" #'calfw-navi-goto-today-command
|
||||||
|
"g" #'calfw-refresh-calendar-buffer
|
||||||
|
"W" #'calfw-change-view-week
|
||||||
|
"M" #'calfw-change-view-month
|
||||||
|
"D" #'calfw-change-view-day
|
||||||
|
"TAB" #'calfw-navi-next-item-command
|
||||||
|
"q" #'bury-buffer
|
||||||
|
"x" #'calfw-org-clean-exit
|
||||||
|
"RET" #'calfw-org-open-agenda-day
|
||||||
|
"<" #'calfw-navi-prev-view
|
||||||
|
">" #'calfw-navi-next-view)
|
||||||
|
|
||||||
(defun my/open-calendar ()
|
(defun my/open-calendar ()
|
||||||
"Calfw — stabilní verze, org-agenda-files."
|
"Calfw — stabilní verze, org-agenda-files."
|
||||||
|
|||||||
Reference in New Issue
Block a user