Skip to content

Instantly share code, notes, and snippets.

@argv0
Created December 16, 2011 19:54
Show Gist options
  • Save argv0/1487662 to your computer and use it in GitHub Desktop.
Save argv0/1487662 to your computer and use it in GitHub Desktop.
(setq erlang-root-dir "/usr/local/lib/erlang")
(setq load-path (cons "/usr/local/lib/erlang/lib/tools-2.6.6.5/emacs" load-path))
(setq load-path (cons "/Users/andy/.elisp" load-path))
(setq exec-path (cons "/usr/local/lib/erlang/bin" exec-path))
(require 'column-marker)
;; Local el path
(setq indent-tabs-mode nil)
(setq-default indent-tabs-mode nil)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
;; if indent-tabs-mode is off, untabify before saving
(add-hook 'before-save-hook
(lambda () (if (not indent-tabs-mode)
(untabify (point-min) (point-max)))))
;; 4 space indent
(setq c-basic-offset 4)
(defun insert-ascii-dong (size)
(interactive "nSize: ")
(insert (concat "8" (make-string size ?=) "D")))
(require 'erlang-start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment