summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el7
1 files changed, 5 insertions, 2 deletions
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)