Skip to content

Instantly share code, notes, and snippets.

@tek-nishi
Created August 23, 2017 07:38
Show Gist options
  • Save tek-nishi/06d478699c4df25f78b28173096229b1 to your computer and use it in GitHub Desktop.
Save tek-nishi/06d478699c4df25f78b28173096229b1 to your computer and use it in GitHub Desktop.
How to add original align rules.
;; alignのルールを追加(init.elに追加する)
;; SOURCE: http://handlename.hatenablog.jp/entry/2011/12/11/214923
(eval-after-load "align"
'(add-to-list 'align-rules-list
'(my-comma-assignment
(regexp . ",\\(\\s-*\\)")
(repeat . t)
(modes . align-c++-modes))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment