From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: Insert time in Org-mode Date: Thu, 27 Jun 2019 11:23:26 +0200 Message-ID: <20190627092326.GY24867@volibear> References: <00e1adf1-aa75-4c82-9b6a-ed6592f105a6@gmx.fr> <20190626190427.GS24867@volibear> <87y31ow0i2.fsf@mbork.pl> <87pnn0ovf2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35308) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgQdL-00059S-Os for emacs-orgmode@gnu.org; Thu, 27 Jun 2019 05:24:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgQdJ-0007vo-Rn for emacs-orgmode@gnu.org; Thu, 27 Jun 2019 05:23:59 -0400 Received: from se11.route25.eu ([2a00:f10:121:b00:1c00:bcff:fe00:1c14]:45828) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hgQdJ-0007pu-HG for emacs-orgmode@gnu.org; Thu, 27 Jun 2019 05:23:57 -0400 Content-Disposition: inline In-Reply-To: <87pnn0ovf2.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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 RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3