Merge pull request #1999 from randomizedthinking/develop

docs/api: add terminal-cursor-change snippet
This commit is contained in:
Henrik Lissner 2019-11-01 13:09:09 -04:00 committed by GitHub
commit 8a999c6ae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,7 @@ It is integrated into Helpful, in Doom.
- [[#interesting-snippets][Interesting snippets]] - [[#interesting-snippets][Interesting snippets]]
- [[#persist-emacs-initial-frame-size-across-sessions][Persist Emacs' initial frame size across sessions]] - [[#persist-emacs-initial-frame-size-across-sessions][Persist Emacs' initial frame size across sessions]]
- [[#persist-emacs-initial-frame-position-dimensions-andor-full-screen-state-across-sessions][Persist Emacs' initial frame position, dimensions and/or full-screen state across sessions]] - [[#persist-emacs-initial-frame-position-dimensions-andor-full-screen-state-across-sessions][Persist Emacs' initial frame position, dimensions and/or full-screen state across sessions]]
- [[#update-cursor-shape-under-terminal-emacs][Update cursor shape under terminal Emacs]]
* Examples for Doom's core library * Examples for Doom's core library
** core-lib ** core-lib
@ -385,3 +386,21 @@ It is integrated into Helpful, in Doom.
(add-hook 'kill-emacs-hook #'save-frame-dimensions) (add-hook 'kill-emacs-hook #'save-frame-dimensions)
#+END_SRC #+END_SRC
** Update cursor shape under terminal Emacs
Install [[https://github.com/7696122/evil-terminal-cursor-changer][evil-terminal-cursor-changer]]. Since the package is no longer maintained
and lack support for a number of terminals, doom emacs opts NOT to incorporate
this package in at this moment.
#+BEGIN_SRC elisp
;; ~/.doom.d/packages.el
(package! evil-terminal-cursor-changer)
;; ~/.doom.d/config.el
(use-package! evil-terminal-cursor-changer
:hook (tty-setup . evil-terminal-cursor-changer-activate))
#+END_SRC
Alternative, there is an updated version: [[https://github.com/amosbird/evil-terminal-cursor-changer][amosbird/evil-terminal-cursor-changer]],
which fixed some issues for urxvt and tmux.