Compare commits
5 commits
710dd1bdba
...
03c82fdfc6
Author | SHA1 | Date | |
---|---|---|---|
03c82fdfc6 | |||
d6e4880eb6 | |||
5a9ac8a045 | |||
741989ce48 | |||
32e0abfb3f |
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