[Dclug] Simple Emacs Question
dturvene at dahetral.com
Tue Jul 14 11:07:39 EDT 2009
Alan McConnell wrote:
> On Mon, Jul 13, 2009 at 06:34:15PM -0400, Aaron M. Ucko wrote:
>> I believe the input-method approach John suggested should work even in
>> Emacs 21.
> In any mode I can go: M-x iso-accents-mode, and I get what
> I want. Why is there not some equivalent one line that I can stick
> in my .emacs ? (I own Stallman's "GNU Emacs Manual, thirteenth
> edition, Version 20; and the O'Reilly "Learning GNU Emacs".
> Neither is any help).
> I'm speculating that the kind souls who have replied to this
> query are out of ideas. Is there an E-list for emacs? gotta
> be, no? but I can't find it.
I have never used iso-accents-mode and, in 22.2, it appears to be
obsolete. I don't know the reason because it looks very useful.
Having said that, 1) anything executable in the minibuffer can be done
in a script and 2) extensible macros (emacs) are generally designed to
be flexibly combined into new macros - one liners tended towards less
flexibility. Do something like this in your .emacs
;; create a special mode definition
(defun alans-mode ()
"My mode and minor-mode characteristics"
;; anything else you want, I like auto-fill-mode
;; It is a bad idea to implicitly override all modes. See info
;; or C-H-v for more on auto-mode-alist
(add-to-list 'auto-mode-alist '("\\.txt$" . alans-mode))
More information about the Dclug