Skip to content

Instantly share code, notes, and snippets.

@bdionne
Created January 10, 2018 21:59
Show Gist options
  • Save bdionne/332a589186547122bdcbc332fe2a531b to your computer and use it in GitHub Desktop.
Save bdionne/332a589186547122bdcbc332fe2a531b to your computer and use it in GitHub Desktop.

;;(server-start)

(setq load-path (cons “~/emacs/site-lisp/” load-path))

(setq load-path (cons “~/emacs/distel/elisp/” load-path)) (setq load-path (cons “/usr/local/lib/erlang/lib/tools-2.8.5/emacs” load-path))

(add-to-list ‘auto-mode-alist ‘(“\.erl$” . erlang-mode)) (add-to-list ‘auto-mode-alist ‘(“\.hrl?$” . erlang-mode))

(setq-default show-trailing-whitespace t)

(defvar cleanup-whitespace (lambda() (add-hook ‘local-write-file-hooks ‘(lambda() (save-excursion (delete-trailing-whitespace))))))

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