etc/emacs.el

42 lines
917 B
EmacsLisp
Raw Normal View History

(global-font-lock-mode 1)
(show-paren-mode)
(setq inferior-lisp-program "/usr/bin/sbcl")
(if (fboundp 'slime-setup) (slime-setup))
(setq user-full-name "Gabriel Ebner"
2013-04-29 16:40:37 +00:00
user-mail-address "gebner@2b7e.org")
(autoload 'run-haskell "inf-haskell"
"Start an inferior haskell buffer." t)
(setq haskell-program-name "ghci")
(setq py-indent-offset 2)
(defun perltidy ()
"Run perltidy on current buffer."
(interactive)
(mark-whole-buffer)
(shell-command-on-region
(region-beginning)
(region-end)
"perltidy -q"
0 0 nil))
(defun ebuild-mode ()
"Mode for ebuilds and eclasses."
(interactive)
(shell-script-mode)
(sh-set-shell "bash")
(make-local-variable 'tab-width)
(setq tab-width 4))
(setq auto-mode-alist
(cons '("\\.ebuild\\'" . ebuild-mode)
(cons '("\\.eclass\\'" . ebuild-mode)
auto-mode-alist)))
2013-04-29 14:09:02 +00:00
(eval-after-load "notmuch" '(load "~/etc/notmuch-config.el"))