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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -