Emacs

Emacs Function of the Day: propertize

Today's Emacs function of the day is propertize. It allows you to format text in ways that are plain pretty. As an example, here's code to insert "Gah! I'm green!" into a buffer:

(insert (propertize "Gah! I'm green!" 'face '(:foreground "#00ff00" :background "#005000")))

Random Emacs Functions

I created some functions for Emacs because I really didn't want to do this stuff by hand. I have here four functions: count-occurences, line-empty?, unfill-region, unfill-buffer. You can either read the rest of this post, or click here to get the file.

Syndicate content

Ad's by Google