commit 962f66f80199629ce83a7ad9de3dc1e23432e77c
parent 37b94616f3f6265bde87d078116d48888f4d8f58
Author: Alex Balgavy <alex@balgavy.eu>
Date: Thu, 12 Aug 2021 15:44:21 +0200
emacs: make cursor bar not block
Unlike in Vim, the cursor is never "on" something in Emacs, it's
always between characters. So the cursor shape should reflect that.
Diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org
@@ -157,8 +157,7 @@ Generally makes for nicer interactivity, like ido mode on steroids.
Ag (silver searcher) support:
#+begin_src emacs-lisp
-(use-package helm-ag)
-
+ (use-package helm-ag)
#+end_src
** org
@@ -318,6 +317,16 @@ anki-editor doesn't provide a keymap so I have to set one up here:
(global-hl-line-mode)
(show-paren-mode 1)
#+end_src
+*** Cursor
+The default box cursor isn't really accurate, because the cursor is actually between letters, not on a letter.
+So, I want a bar instead of a box:
+
+#+begin_src emacs-lisp
+ (setq-default cursor-type '(bar . 4))
+#+end_src
+
+(I use ~setq-default~ here because cursor-type is automatically buffer-local when it's set)
+
*** Line numbers
Relative line numbers: