From 84b6bbad2e6fb741b8941fc932c17d00f1bf5da3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 20 May 2015 16:30:25 +0200 Subject: Emacs: Add alignment rules for Javascript objects --- tag-emacs/emacs.d/init.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tag-emacs/emacs.d') diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index c7fa0a82..28e9a183 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -1111,6 +1111,13 @@ mouse-1: Display Line and Column Mode Menu")))))) (setq sentence-end-double-space t line-move-visual nil) +(req-package align + :config (progn + (add-to-list 'align-rules-list + '(colon-key-value + (regexp . ":\\(\\s-*\\)") + (modes . '(js2-mode)))))) + (setq x-select-enable-clipboard t) (if (functionp 'x-cut-buffer-or-selection-value) (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)) -- cgit 1.4.1