On Thu, Jun 27, 2019 at 08:04:33AM +1000, Tim Cross wrote: > > That is a bit strange - my Emacs doesn't seem to have `bind-key'. > > > > It is from a separate package called bind-key that you can install from > MELPA. > > The excellent 'use-package' package uses it as a convenience method to > bind keys in use-pacakge definition blocks.
I could refactor that to use the binding in use-package. > > Also, I would just add f9 to `org-mode-map', e.g. using `define-key' - > > there's no need then to check for `major-mode'. > > > > Yep, exactly my first thoughts when I saw the example. I use to have > something similar, but now my capture templates and 'Journal' option > take care of all of that, plus other useful details - like the > place/buffer/mode you were in when you took the note etc. I've used this same code since 2007? Perhaps it needs an update. ;] ------------------------------------------------------------------ Russell Adams rlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3