regex - Emacs Lisp Align Keybinding Definition in init file -
i have following line in emacs init file.
(global-set-key (kbd "c-x r") 'align-regexp)
is there way hard-code in particular regex don't have specify every time?
you create own command hard-coded regexp so:
(defun align-specific-regexp (beg end) "call 'align-regexp regexp ..." (interactive "r") (align-regexp beg end "^some.*regexp\\(here\\)?"))
Comments
Post a Comment