unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Quick question on (use-package)
@ 2024-02-27 11:42 Pedro Andres Aranda Gutierrez
  2024-02-27 11:52 ` Yuri Khan
  2024-02-27 11:55 ` Andreas Schwab
  0 siblings, 2 replies; 5+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-02-27 11:42 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 572 bytes --]

Hi,

I'm getting crazy trying to find a piece of documentation that helps me
translate

(define-key esc-map " " #'set-mark-command)

to

(use-package foo
:bind (:map esc-map
           (<whatever needs to come here> . set-mark-command))

Could anyone help me? I have tried "\040" [space], etc. to no avail

Thanks, /PA

-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 1067 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Quick question on (use-package)
  2024-02-27 11:42 Quick question on (use-package) Pedro Andres Aranda Gutierrez
@ 2024-02-27 11:52 ` Yuri Khan
  2024-02-27 11:55 ` Andreas Schwab
  1 sibling, 0 replies; 5+ messages in thread
From: Yuri Khan @ 2024-02-27 11:52 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: emacs-devel

On Tue, 27 Feb 2024 at 18:43, Pedro Andres Aranda Gutierrez
<paaguti@gmail.com> wrote:

> translate
>
> (define-key esc-map " " #'set-mark-command)
>
> to
>
> (use-package foo
> :bind (:map esc-map
>            (<whatever needs to come here> . set-mark-command))

use-package :bind works in terms of what the (kbd …) function accepts,
so "SPC" should probably work.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Quick question on (use-package)
  2024-02-27 11:42 Quick question on (use-package) Pedro Andres Aranda Gutierrez
  2024-02-27 11:52 ` Yuri Khan
@ 2024-02-27 11:55 ` Andreas Schwab
  2024-02-27 15:47   ` Pedro Andres Aranda Gutierrez
  1 sibling, 1 reply; 5+ messages in thread
From: Andreas Schwab @ 2024-02-27 11:55 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: emacs-devel

On Feb 27 2024, Pedro Andres Aranda Gutierrez wrote:

> I'm getting crazy trying to find a piece of documentation that helps me
> translate
>
> (define-key esc-map " " #'set-mark-command)
>
> to
>
> (use-package foo
> :bind (:map esc-map
>            (<whatever needs to come here> . set-mark-command))
>
> Could anyone help me? I have tried "\040" [space], etc. to no avail

(key-description " ") => "SPC"

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Quick question on (use-package)
  2024-02-27 11:55 ` Andreas Schwab
@ 2024-02-27 15:47   ` Pedro Andres Aranda Gutierrez
  2024-02-28 10:26     ` Pedro Andres Aranda Gutierrez
  0 siblings, 1 reply; 5+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-02-27 15:47 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 999 bytes --]

OK, then we have a bug in master here! I'll report

Thx, /PA

On Tue, 27 Feb 2024 at 12:56, Andreas Schwab <schwab@suse.de> wrote:

> On Feb 27 2024, Pedro Andres Aranda Gutierrez wrote:
>
> > I'm getting crazy trying to find a piece of documentation that helps me
> > translate
> >
> > (define-key esc-map " " #'set-mark-command)
> >
> > to
> >
> > (use-package foo
> > :bind (:map esc-map
> >            (<whatever needs to come here> . set-mark-command))
> >
> > Could anyone help me? I have tried "\040" [space], etc. to no avail
>
> (key-description " ") => "SPC"
>
> --
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
>


-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 1775 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Quick question on (use-package)
  2024-02-27 15:47   ` Pedro Andres Aranda Gutierrez
@ 2024-02-28 10:26     ` Pedro Andres Aranda Gutierrez
  0 siblings, 0 replies; 5+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-02-28 10:26 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: emacs-devel

[-- Attachment #1: Type: text/html, Size: 2255 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-28 10:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-27 11:42 Quick question on (use-package) Pedro Andres Aranda Gutierrez
2024-02-27 11:52 ` Yuri Khan
2024-02-27 11:55 ` Andreas Schwab
2024-02-27 15:47   ` Pedro Andres Aranda Gutierrez
2024-02-28 10:26     ` Pedro Andres Aranda Gutierrez

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).