11 ms·
Here are three of mine: (defun tom/insert-sterling-symbol () (interactive) (insert "£")) (defun tom/set-buffer-modified () (interact
by to3m 11y ago
Here are three of mine:
(defun tom/insert-sterling-symbol ()
(interactive)
(insert "£"))
(defun tom/set-buffer-modified ()
(interactive)
(set-buffer-modified-p 't))
(defun tom/unix ()
"Set buffer to unix line endings"
(interactive)
(set-buffer-file-coding-system 'unix))
The last one exists only because I could never remember the right command to select Unix-style line endings. So rather than train myself to learn it, I just wrote a small wrapper with an obvious (to me...) name, because it's so easy to do that.
I've written some Visual Studio addins as well... the experience is not really comparable. (Visual Studio VBA macros, when it supported that, were painful too.) emacs makes it a lot easier.
- throwanem 11y agoIncidentally, C-x 8 is by default bound to a keymap that includes a lot of glyphs not often found on keyboards. You can insert £ with C-x 8 L, which might be more convenient than M-x tom/insert-sterling-symbol RET.