diff options
Diffstat (limited to 'emacs-go-mode')
-rw-r--r-- | emacs-go-mode/Makefile | 11 | ||||
-rw-r--r-- | emacs-go-mode/init-go-mode.el | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/emacs-go-mode/Makefile b/emacs-go-mode/Makefile new file mode 100644 index 0000000..ea3f8be --- /dev/null +++ b/emacs-go-mode/Makefile @@ -0,0 +1,11 @@ +.POSIX: + +install: + mkdir -p -- ~/.config/emacs + test -L ~/.config/emacs/init-go-mode.el || test ! -e ~/.config/emacs/init-go-mode.el + ln -sf -- ~/.dotfiles/emacs-go-mode/init-go-mode.el ~/.config/emacs/ + +uninstall: + +! ../check-installed emacs-go-mode + -unlink -- ~/.config/emacs/init-go-mode.el + -rmdir -- ~/.config/emacs diff --git a/emacs-go-mode/init-go-mode.el b/emacs-go-mode/init-go-mode.el new file mode 100644 index 0000000..56e3c16 --- /dev/null +++ b/emacs-go-mode/init-go-mode.el @@ -0,0 +1,3 @@ +(add-to-list 'load-path "/usr/share/emacs/site-lisp/go-mode/") +(autoload 'go-mode "go-mode" nil t) +(add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode)) |