[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: .emacs poser
From: |
Dale Snell |
Subject: |
Re: .emacs poser |
Date: |
Mon, 16 Dec 2013 17:48:11 -0800 |
On Mon, 16 Dec 2013 18:01:02 -0600
"B. T. Raven" <btraven@nihilo.net> wrote:
> In my emacs I have these global-set-key forms:
>
> ....
>
> (global-set-key "\C-cg" (lambda () (interactive) (insert ?° )))
> (global-set-key "\C-ch" (lambda () (interactive) (insert ?·)))
> (global-set-key "\C-c-" (lambda () (interactive) (insert ?— )))
> (global-set-key "\C-cI" (lambda () (interactive) (insert ?‽
> ))) ;; ;; ;; capital eye interrobang
> (global-set-key "\C-cL" (lambda () (interactive) (insert ?£ )))
> (global-set-key "\C-cm" (lambda () (interactive) (insert ?ˉ)))
> ;;(global-set-key "\C-cM" (lambda () (interactive) (insert ?̄✠)))
> (global-set-key "\C-cp" (lambda () (interactive) (insert ?¶ )))
> (global-set-key "\C-cr" (lambda () (interactive) (insert ?® )))
> (global-set-key "\C-cs" (lambda () (interactive) (insert ?§ )))
> (global-set-key "\C-ci" (lambda() (interactive) (insert
> (format-time-string "%a %Y .....
>
> These and many others work fine (in w32 native v. 23.3) but any
> attempt to evaluate "\C-cM" (capital M) truncates the rest of
> the .emacs and wakes the Debugger:
==========%<---------- SNIP! ---------->%==========
I don't know why this isn't working for you, I'm an E-Lisp tyro.
Still, it looks to me like you're re-inventing the wheel. Rather than
pulling your hair out over this, try using iso-transl.elc (comes with
Emacs) or perhaps typopunct.el (not part of Emacs proper). Check
EmacsWiki for information on both of them. Both can be extended to add
such characters as Registered ® and the Maltese Cross ✠. ("C-x 8 * R"
and "C-x 8 * M", respectively, using iso-transl. I added both
those characters myself. It's very easy.)
Hope this helps.
--Dale
--
"Text processing has made it possible to right-justify any idea,
even one which cannot be justified on any other grounds."
-- J. Finnegan, USC.
- .emacs poser, B. T. Raven, 2013/12/16
- Re: .emacs poser, Emanuel Berg, 2013/12/16
- Re: .emacs poser,
Dale Snell <=
- Message not available
- Re: .emacs poser, Emanuel Berg, 2013/12/16
- Message not available
- Re: .emacs poser, Emanuel Berg, 2013/12/16
- Re: .emacs poser, Dale Snell, 2013/12/17
- Re: .emacs poser, Tilman Ahr, 2013/12/17
- Re: .emacs poser, Emanuel Berg, 2013/12/17
- Re: .emacs poser, Tilman Ahr, 2013/12/17
- Re: .emacs poser, Emanuel Berg, 2013/12/18