From eceb2c9b1b3b99d09c0deae7ed30c166b91e04d8 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sat, 29 Jun 2024 09:44:41 +0000 Subject: Update mouse click to be sloppier --- config.org | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.org') diff --git a/config.org b/config.org index 99a43f3..3eff38a 100644 --- a/config.org +++ b/config.org @@ -1391,6 +1391,13 @@ Use ibuffer instead of list-buffers (global-set-key [remap list-buffers] 'ibuffer) #+end_src +** Clicking around +By default, clicking on a character will always put the point in front of that character. But it generally feels nicer for a click to put the point on the nearest side of the character to where the mouse clicked, to allow for slightly sloppier clicking. + +#+begin_src elisp + (setopt mouse-prefer-closest-glyph t) +#+end_src + * Writing code ** Indentation: tabs and whitespace settings In general, my rules for inserting tabs are that the tab key should insert tabs. I personally prefer tabs to spaces, because tabs work reasonably well whatever font or tab width one chooses to set, whereas spaces are the same width for everyone, except when someone uses a proportional font in which case they are narrower than expected. Furthermore, people tend to use spaces for alignment, which looks bad when you can't rely on every character being the same width. -- cgit 1.4.1-2-gfad0