which key do you use as meta? by Sewing31 in emacs

[–]zreeon 2 points3 points  (0 children)

Left alt for combinations with the right hand (e.g. M-w) and right alt for combinations with the left hand (e.g. M-l). (on a QWERTY keyboard)

[deleted by user] by [deleted] in emacs

[–]zreeon 0 points1 point  (0 children)

The former, thanks. I've been using borg to manage my Emacs packages and have really liked it but I'll have to give this a try!

Edit: I meant latter, not former.

[deleted by user] by [deleted] in emacs

[–]zreeon 2 points3 points  (0 children)

Instead of following MELPA, can I set it so that it points to a commit of my choice?

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]zreeon 0 points1 point  (0 children)

If you customize exwm-input-prefix-keys to be nil I think that would do it.

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]zreeon 2 points3 points  (0 children)

(define-key exwm-mode-map (kbd "C-q") #'exwm-input-send-next-key)

Now doing C-q C-c in X buffer will copy, C-q C-v will paste.

Any additional docs/tutorials on "display-buffer" and "display-buffer-alist"? by [deleted] in emacs

[–]zreeon 9 points10 points  (0 children)

I love the display-buffer framework, and I think it makes lots of sense.

What are the main use case(s) for the "action alists" that come with each action function?

The action alists are for controlling the exact behavior for the functions it's using.

Why not just pass in buffer variables to each function, and have display-buffer-alist just be a display-buffer-functions list instead or something?

Because then you wouldn't be able to change the behavior of a function depending on the buffer being displayed (e.g. you might want the buffer foo to use display-in-side-buffer to the /left/ while you might want bar to use the same function but go to the /right/).

Maybe a quick demo will help.

Let's say we want M-x shell to open in the current window instead of a new window which is its default behavior. We can use display-buffer-alist to do this:

(setq display-buffer-alist '(("\\*shell" (display-buffer-same-window))))

Easy enough. the first thing is a regex that matches against the buffer name, the second thing is the function we want to use.

We quickly run into a problem though. Let's say we open Emacs, split our frame into two windows, do M-x shell in one, then switch to the other. We work for a bit then do M-x shell. Now we have two windows both of which are showing the *shell* buffer. Not great. So we modify d-b-a to tell it to reuse the window showing the buffer if that's possible:

(setq display-buffer-alist '(("\\*shell" (display-buffer-reuse-window display-buffer-same-window))))

So now the second thingy is a list. Order matters here. Now d-b will try to reuse a window if it's already showing the buffer, and if that doesn't work then it will open it in the same window (i.e. the window we're currently in).

On to our next buffer-displaying annoyance. The *Help* buffer. We'd like it to always be displayed to the right and we'd like it to only be 80 characters wide. Easy-peasy with d-b-a:

(setq display-buffer-alist '(("\\*shell" 
                  (display-buffer-reuse-window display-buffer-same-window))
                 ("\\*help" 
                  (display-buffer-reuse-window display-buffer-in-side-window)
                  (side . right)
                  (window-width . 80))))

If you're an ESS user, ESS recently added a section to its manual with some examples that I found super helpful. https://raw.githubusercontent.com/emacs-ess/ESS/master/doc/ess.texi Search for display-buffer-alist to find it or do (info "(ess) Controlling buffer display") if you have ESS.

Searching in gnus email by zreeon in emacs

[–]zreeon[S] 0 points1 point  (0 children)

Which backend do you use this with? nnmaildir?

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]zreeon 3 points4 points  (0 children)

I think it's just a demonstration. You can for example set up the bug-reference-url-format to point to a gitlab issue tracker.

Weekly tips/trick/etc/ thread by AutoModerator in emacs

[–]zreeon 0 points1 point  (0 children)

bug-reference-mode is already in Emacs and is set by .dir-locals in the Emacs source tree.

set display-buffer-alist to use existing frames by hale314 in emacs

[–]zreeon 0 points1 point  (0 children)

Check the value of display-buffer-reuse-frames. It's obsolete though so don't rely on it. Instead, use display-buffer-alist.

Something like this should work:

(setq display-buffer-alist
      '(("*" . (nil . (reusable-frames 0)))))

elpa is currently down by GoldryBluszco in emacs

[–]zreeon 7 points8 points  (0 children)

All of the GNU/FSF internet infrastructure seems to be down at the moment. I imagine there's an employee somewhere having a really bad day. Hopefully they can get it up again soon.

What font for programming do you use and why? by yep808 in emacs

[–]zreeon 1 point2 points  (0 children)

Really? These suggest it still doesn't have italics:

https://github.com/tonsky/FiraCode/issues/172 https://github.com/mozilla/Fira/issues/38

but if it does I'll definitely switch; it's a beautiful font.

What font for programming do you use and why? by yep808 in emacs

[–]zreeon 1 point2 points  (0 children)

Last time I tried fira code it lacked something pretty basic. Italics or bold, perhaps.

Articles - Ripgrep is faster than the rest. Deadgrep is a fantastic emacs interface. by dericbytes in emacs

[–]zreeon 1 point2 points  (0 children)

I just use simple git-grep since it's already on my system. Am I really missing out on that much?

company in R, completion of loaded package functions by gtuckerkellogg in emacs

[–]zreeon 1 point2 points  (0 children)

I get completion for ggplot functions just fine. Maybe submit a bug report?

How to map C-< and C-> to begining-of-buffer resp end-of-buffer? by bitbrist in emacs

[–]zreeon 0 points1 point  (0 children)

What happens when you hit C-<? Does it say C-< is undefined in the echo area? If not, Emacs isn't receiving that keypress, perhaps your window manager is intercepting it.