Skip to content

Instantly share code, notes, and snippets.

@waylandc
Created March 5, 2020 10:45
Show Gist options
  • Save waylandc/e2456b87c73b7983e4e5b1342f6fe550 to your computer and use it in GitHub Desktop.
Save waylandc/e2456b87c73b7983e4e5b1342f6fe550 to your computer and use it in GitHub Desktop.
my collection of emacs tips
;; collection of tips I've found on the net for me to copy and paste from in one place
;; to format a region of code
;; make sure your in correct mode for appropriate formatting
;; i.e. M-x c-mode
C-x h (M-x mark-whole-buffer)
C-M-\ (M-x indent-region)
;; shutdown the emacs daemon
emacsclient -e '(save-buffers-kill-emacs)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment