all repos — nixfiles @ 84b6bbad2e6fb741b8941fc932c17d00f1bf5da3

System and user configuration, managed by nix and home-manager

Emacs: Add alignment rules for Javascript objects

Alan Pearce
commit

84b6bbad2e6fb741b8941fc932c17d00f1bf5da3

parent

8f86a9d18705be2fa2257ea5e38a05f497e2ddd6

1 file changed, 7 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-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))