aboutsummaryrefslogtreecommitdiffstats
path: root/emacs-go-mode
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-01 19:26:05 +0100
committerMattias Andrée <m@maandree.se>2025-03-01 19:26:05 +0100
commit2574c4cabc34756eb124e69d6a8e0ffeaa56a44f (patch)
tree0b6bc70a0d2bd5cb3879eb7b998b4ea17b053575 /emacs-go-mode
parentm (diff)
downloaddotfiles-2574c4cabc34756eb124e69d6a8e0ffeaa56a44f.tar.gz
dotfiles-2574c4cabc34756eb124e69d6a8e0ffeaa56a44f.tar.bz2
dotfiles-2574c4cabc34756eb124e69d6a8e0ffeaa56a44f.tar.xz
...
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'emacs-go-mode')
-rw-r--r--emacs-go-mode/Makefile11
-rw-r--r--emacs-go-mode/init-go-mode.el3
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))