Skip to content

Instantly share code, notes, and snippets.

@eviltofu
Last active March 24, 2024 03:37
Show Gist options
  • Save eviltofu/ae7cac72be16c1b8ac3f76c0a87651da to your computer and use it in GitHub Desktop.
Save eviltofu/ae7cac72be16c1b8ac3f76c0a87651da to your computer and use it in GitHub Desktop.

TILT: emacs configuration

Today I learned that (TILT) I could edit the .emacs file to start emacs with the various modes turned on.

The default emacs setup that comes with my system (macOS) lacks certain features. The mouse and mouse wheel are not used, there is no word wrap, etc. So I dug through the emacs brain dump via Google and found the following .emacs 1 modifications:

(xterm-mouse-mode t)
(mouse-wheel-mode t)
(global-visual-line-mode t)

xterm-mouse-mode : allows the mouse to change the buffer in focus.

mouse-wheel-mode : allows the mouse wheel to scroll the buffer in focus.

global-visual-line-mode : allows soft word wrapping at the global level.

Footnotes

  1. Should I dump everything in ~/.emacs or is there another file I could use? ~/.emacs.d/init.el maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment