#Emacs tip of the week:
Use “Wind Move Mode.” Enable with this in your init.el file:
(windmove-default-keybindings)This lets you move your cursor from window to window using the shift key with the arrow keys, such that the cursor will move to the window split nearest to cursor in the arrow direction you pressed. This feature has been built-in to Emacs since version 27.1 (the year 2020, which is, for a 50-year-old piece of software, not at all very long ago)
I only learned about this feature a few days ago, and it has instantly improved my quality of (virtual) life. It feels more comfortable and natural than C-x o, and now I use it constantly and without thinking about it. I stumbled upon this feature when creating a new Emacs init.el for an Apple laptop.
I am too lazy to try to keep one single Emacs config for all of my devices. I mean, I could, but unless I am replacing my personal daily driver (where I would copy my entire home directory, including Emacs config), I usually just start a new config every time I get a new computer, especially a work computer. And when I do, I gradually set the configuration variables that I need as I go along, searching the documentation when I can’t remember how to do things.
I’m not the kind of guy who declares “ #EmacsBankruptcy “. I always keep my init.el file simple, only for configuring modes and global variables, and nothing else. I keep my personal macros in other files. So recreating my Emacs init.el for each new computer is one of the few chances I have to stumble across new configuration variables I hadn’t seen before in the documentation.
#tech #software #Lisp #EmacsLisp #EmacsConfig