Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add assignment/hashrocket alignment key

  • Loading branch information...
commit 559bb31697e2535e5c640a0b5b49de3e84036c59 1 parent d898580
@bleything authored
Showing with 9 additions and 0 deletions.
  1. +6 −0 functions.el
  2. +3 −0  init.el
View
6 functions.el
@@ -40,3 +40,9 @@
(comment-or-uncomment-region
(line-beginning-position)
(line-end-position))))))
+
+;;; align on assignment or hashrocket
+(defun bb-align-assignment-or-hashrocket (beg end)
+ (interactive "r")
+ (align-regexp beg end "\\( \\)=>?"))
+(global-set-key (kbd "C-c [") 'bb-align-assignment-or-hashrocket)
View
3  init.el
@@ -41,6 +41,9 @@
;;; no tabs.
(setq-default indent-tabs-mode nil)
+;;; fill to 80 columns
+(setq fill-column 80)
+
;;; add ~/.emacs.d/vendor to load path
(add-to-list 'load-path (concat user-emacs-directory "vendor"))
Please sign in to comment.
Something went wrong with that request. Please try again.