emacs/functions.el
Maciej Szlosarczyk c2d105ae65
Add set-line-120 function and racer package
Fix align-to-colon function
2017-04-25 08:59:26 +03:00

15 lines
453 B
EmacsLisp

;;; Functions -- summary
;;; Commentary:
;;; Code:
(defun kill-other-buffers ()
"Kill all buffers except for the current one."
(interactive)
(mapc 'kill-buffer (delq (current-buffer) (buffer-list)))
)
(defun align-to-colon (begin end)
"Align region from BEGIN to END according to colon signs."
(interactive "r")
(align-regexp begin end
(rx ":" (group (zero-or-more (syntax whitespace))) ) 1 1))
;;; functions.el ends here