Compare commits
5 commits
03c82fdfc6
...
710dd1bdba
Author | SHA1 | Date | |
---|---|---|---|
710dd1bdba | |||
1755239637 | |||
08cce2e423 | |||
b4cdd02b97 | |||
e3474dc166 |
16
init.el
16
init.el
|
@ -87,16 +87,16 @@
|
||||||
(define-kmacro-wrapper my--god-c-g "C-g"))
|
(define-kmacro-wrapper my--god-c-g "C-g"))
|
||||||
(with-eval-after-load 'catppuccin-theme
|
(with-eval-after-load 'catppuccin-theme
|
||||||
(add-hook 'god-mode-enabled-hook
|
(add-hook 'god-mode-enabled-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(if (display-graphic-p)
|
(if (display-graphic-p)
|
||||||
(set-cursor-color (catppuccin-get-color 'rosewater))
|
(set-cursor-color (catppuccin-get-color 'rosewater))
|
||||||
(send-string-to-terminal "\e[2 q"))))
|
(send-string-to-terminal "\e[2 q"))))
|
||||||
(add-hook 'god-mode-disabled-hook
|
(add-hook 'god-mode-disabled-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(if (display-graphic-p)
|
(if (display-graphic-p)
|
||||||
(set-cursor-color (catppuccin-get-color 'mauve))
|
(set-cursor-color (catppuccin-get-color 'mauve))
|
||||||
;; Escape codes for hbar cursor in insert mode
|
;; Escape codes for hbar cursor in insert mode
|
||||||
(send-string-to-terminal "\e[4 q")))))
|
(send-string-to-terminal "\e[4 q")))))
|
||||||
(unless (or (daemonp) (display-graphic-p))
|
(unless (or (daemonp) (display-graphic-p))
|
||||||
(keymap-global-set "C-l" (lambda () (interactive) (god-mode-all 0))))
|
(keymap-global-set "C-l" (lambda () (interactive) (god-mode-all 0))))
|
||||||
(god-mode))
|
(god-mode))
|
||||||
|
|
Loading…
Reference in a new issue