Created
May 14, 2012 19:02
-
-
Save julianbonilla/2695723 to your computer and use it in GitHub Desktop.
Custom emacs initializations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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