[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: backtick as key
From: |
Kaushal Modi |
Subject: |
Re: backtick as key |
Date: |
Thu, 28 Apr 2016 15:05:41 +0000 |
Are you running "emacs -nw", or emacs GUI?
I evaluated the below:
(global-set-key (kbd "C-` C-}") (lambda() (interactive) (message "Hi")))
and it works fine.
C-h c C-` C-} prints
C-` C-} runs the command (lambda nil (interactive) (message "Hi"))
and typing C-` C-} displays Hi in the echo area.
On the latest build of emacs from emacs-25, in terminal mode (emacs -Q
-nw), C-` seems to be detected as C-@ which is bound to set-mark-command by
default.
So probably we cannot use C-` in terminal mode?
On Thu, Apr 28, 2016 at 5:26 AM Andreas Röhler <
andreas.roehler@easy-emacs.de> wrote:
> Hi,
>
> wrote a couple of commands which transform delimited forms.
> For the curious:
>
> https://github.com/andreas-roehler/werkstatt/blob/master/thing-at-point-utils/thingatpt-transform-delimited.el
>
> For example at
>
> `find . -maxdepth 1 -type f -name "*.txt"`
>
> M-x ar-backticked2braced-atpt RET
>
> would yield
>
> {find . -maxdepth 1 -type f -name "*.txt"}
>
> Now let's have some mnemonic keys.
>
> (global-set-key [(control \))(control \})] 'ar-parentized2braced-atpt)
>
> works great.
>
> Unfortunately
>
> (global-set-key [(control \`)(control \})] 'ar-backticked2braced-atpt)
>
> sends error:
>
> <C-dead-grave> is undefined
> C-} is undefined
>
> While when running the command via M-x, messages:
>
> You can run the command ‘ar-backticked2braced-atpt’ with C-` C-}
>
> Any suggestions?
>
> Thanks,
>
> Andreas
>
>
> --
--
Kaushal Modi