Emacs: Add alignment rules for Javascript objects
Alan Pearce alan.pearce@spotcap.com
Wed, 20 May 2015 16:30:25 +0200
1 files changed, 7 insertions(+), 0 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-emacs/emacs.d/init.el
@@ -1111,6 +1111,13 @@ (put 'downcase-region 'disabled nil) (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))