emacs - AUCTeX: Delete all fonts -


this feels problem should have been discussed somewhere, , stupid find :(

i have defined myself function \jf{} , want delete of in whole buffer @ once. example:

bla bla bla \jf{colourful text} bla bla bla bla bla \jf{more colourful text} bla bla bla bla \jf{colour great} bla bla bla bla bla \jf{so great} bla bla 

should become shortcut:

bla bla bla colourful text bla bla bla bla bla more colourful text bla bla bla bla bla colour great bla bla bla bla bla great text bla bla bla 

is there way in auctex so? help.

the quickest way regular expressions (regexp). use

m-x replace-regexp <ret> \\jf{\(.?\)} <ret> \1 

this make emacs replace matches pattern \jf{some text} some text.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -