summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa@gaiwan.org2024-06-29 09:44:41 +0000
committernoa@gaiwan.org2024-06-29 09:44:41 +0000
commiteceb2c9b1b3b99d09c0deae7ed30c166b91e04d8 (patch)
treec289536636e12d33fd7802c466cdcca126b11d13
parent28e680673f020bbdab5220deb535977c722297cd (diff)
Update mouse click to be sloppier
-rw-r--r--config.org7
1 files changed, 7 insertions, 0 deletions
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.