[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] can I force all-caps in part of a headline in a capture template
From: |
Richard Lawrence |
Subject: |
Re: [O] can I force all-caps in part of a headline in a capture template? |
Date: |
Sun, 06 May 2012 20:02:08 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi Chris,
Try this: in your .emacs, add the following code:
(defun prompt-for-lastname-and-upcase ()
(upcase (read-string "Last name: ")))
This defines a function that will prompt the user to type a last name
into the minibuffer, converts the result into uppercase, and returns it
as a string.
Then, in your capture template, change "%^{LASTNAME}" to
"%(prompt-for-lastname-and-upcase)".
Best,
Richard