Commit 8a207841 authored by Duncan Bayne's avatar Duncan Bayne

Pilfer align regexp utility from

parent 99b19b9d
;; Thanks to:
(setq multi-term-program "zsh")
......@@ -182,3 +183,9 @@
"Insert the current datetime in org-mode format (YYYY-MM-DD DAY HH:MM)."
(insert (format-time-string "%Y-%m-%d %a %H:%M ")))
(defun utils/align-char (start end char)
"Align block of text to first instance of given character."
(interactive "r\nsAlign char: ")
(align-regexp start end
(concat "\\(\\s-*\\)" char) 1 1 nil))
......@@ -83,6 +83,7 @@
(global-set-key (kbd "C-+") 'text-scale-increase)
(global-set-key (kbd "C--") 'text-scale-decrease)
(global-set-key (kbd "C-c \\") 'utils/align-char)
(global-set-key (kbd "C-c M-s") 'utils/atlas)
(global-set-key (kbd "C-c RET") 'utils/cd)
(global-set-key (kbd "C-x C-r") 'sudo-edit)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment