Sunday 8 January 2012

Linux Emacs editor, emacs commands examples



·        emacs
·        Given a buffer full of English text, answer the following questions:
a.     How would you change every instance of his to hers?
press M-x . Then enter:
hers  RET his RET hers

M-x replace-string
            his 
            hers


b.     How would you make this change only in the final paragraph?

      Through “M-h” select paragraph then “M-x replace-string his  hers”


c.      Is there a way to look at every usage in context before changing it?

      ESC %

d.     d. How would you deal with the possibility that His might begin a sentence?


     Esc <

0 comments:

Post a Comment

 
Free Host | lasik surgery new york