flashcard-import-from-kill (February 2, 2005, 0) - The following code snippet makes it easier for me to import segments
from my dictionary files. It uses ../emacs/flashcard.el.
(defun flashcard-import-from-kill (deck)
"Import cards for DECK from the clipboard, which should be colon-separated.
Question : Answer"
(interactive (list flashcard-deck))
(unless (eq major-mode 'flashcard-mode)
(error "You're not in a deckfile."))
Emacs: Keyboard shortcuts for navigating code (July 27, 2008, 8) - UPDATE 2014-01-21: Add regexp-quote around current-word.
One of the lines on my list of things I can do in order to make progress on my book is to move my Drupal development environment from Eclipse to Emacs, as immersion would no doubt give me plenty of things to tweak and describe. When you use something every
Emacs menu accelerators — emacs (March 24, 2003, 0) - Jeffery B. Rancier’s March 12 post on email@example.com has
this useful LISP snippet for Windows Emacs users:
(defun jbr-w32-simulate-Alt-tap ()
(global-set-key [C-tab] 'jbr-w32-simulate-Alt-tap)
I wonder if there’s a similar way to do that under GTK…
More Emacs coolness: List of contacts (September 1, 2006, 0) - This bit of Emacs Lisp code produces a Planner-ready list of the contacts displayed in the BBDB window.
(defun sacha/planner-bbdb-annotation-from-bbdb (&optional record)
"If called from a bbdb buffer, return an annotation.
Suitable for use in `planner-annotation-functions'."
(when (or record (eq major-mode 'bbdb-mode))
(setq record (if record (car record) (bbdb-current-record)))