From 1bf3ec9c7bd181eb279aad981de2d1376c7298c9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 1 Jan 2015 16:35:25 -0500 Subject: emacs: I like graphviz-dot-mode --- .config/emacs/init.el | 1 + 1 file changed, 1 insertion(+) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 4bce12a..d879d5d 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -117,6 +117,7 @@ page-break-lines ; Major modes apel flim semi wanderlust + graphviz-dot-mode markdown-mode nginx-mode ;nxhtml ; nxhtml is invasive, only enable if actively using -- cgit v1.2.3-2-g168b From 1d696096996928bcc29c0c710797413c58ca5d8e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 1 Jan 2015 16:35:55 -0500 Subject: emacs: switch to the new advice system --- .config/emacs/init.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index d879d5d..e25961e 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -129,8 +129,11 @@ (when (fboundp 'tool-bar-mode) (tool-bar-mode -1)) -(defadvice align-regexp (around lukeshu-align-with-spaces) - (let ((indent-tabs-mode nil)) ad-do-it)) +(defun align-regexp--use-spaces (orig-fun &rest args) + "Use spaces for alignment" + (let ((indent-tabs-mode nil)) + (apply orig-fun args))) +(advice-add 'align-regexp :around #'align-regexp--use-spaces) (require 'go-mode-load nil t) -- cgit v1.2.3-2-g168b From ffc992122569fd3202cead69f72a57e701853821 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 1 Jan 2015 16:36:30 -0500 Subject: emacs: work around a bug in sh-mode --- .config/emacs/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index e25961e..4379085 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -135,6 +135,14 @@ (apply orig-fun args))) (advice-add 'align-regexp :around #'align-regexp--use-spaces) +(defun sh-smie-sh-rules--fix (args) + "Replace :after \"then\" with :after \"if\" because Emacs 24 +sh-script.el is broken." + (if (equal args (list :after "then")) + (list :after "if") + args)) +(advice-add 'sh-smie-sh-rules :filter-args #'sh-smie-sh-rules--fix) + (require 'go-mode-load nil t) -- cgit v1.2.3-2-g168b