Skip to content

Instantly share code, notes, and snippets.

@julianbonilla
Created May 14, 2012 19:02
Show Gist options
  • Save julianbonilla/2695723 to your computer and use it in GitHub Desktop.
Save julianbonilla/2695723 to your computer and use it in GitHub Desktop.
Custom emacs initializations
;; Custom initializations. Loaded automatically from init.el
;;; Groovy Mode
;;; turn on syntax highlighting
(global-font-lock-mode 1)
;;; use groovy-mode when file ends in .groovy or has #!/bin/groovy at start
(autoload 'groovy-mode "groovy-mode" "Major mode for editing Groovy code." t)
(add-to-list 'auto-mode-alist '("\.groovy$" . groovy-mode))
(add-to-list 'interpreter-mode-alist '("groovy" . groovy-mode))
;;; make Groovy mode electric by default.
(add-hook 'groovy-mode-hook
'(lambda ()
(require 'groovy-electric)
(groovy-electric-mode)))
;;; YASnippets
(require 'yasnippet)
(yas/global-mode 1)
(yas/load-directory "~/.emacs.d/elpa/yasnippet-0.6.1/snippets")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment