!WfZsmtnxbxTdoYPkaT:greyface.org

Emacs

1627 Members
The extensible self-documenting editor | See #emacs-space:matrix.org for related rooms | Latest version: 28.1 (stable) 29.0 (git) | "A sort of hybrid between Windows Notepad, a monolithic-kernel operating system, and the International Space Station."169 Servers

Load older messages


SenderMessageTime
25 Nov 2022
@joakim:verona.sejavemaybe try c-u x = to see what emacs says about the font at point? 21:34:47
@minasmazar:matrix.orgMinasMazar
In reply to @xbow:envs.net
Hi guys, I recently installed vterm and since then my org header fonts have been appearing way too big. This issue continues after uninstalling vterm. I do have custom header settings but I don't think they affect anything, because I still get the issue after removing it. Any help fixing this would be appreciated.
Don't think it's related to vterm (I've installed it many times in many envs). Check your custom-file, maybe something wrong there? 🤷🏻‍♂️
21:50:45
@xbow:envs.netCharged
In reply to @minasmazar:matrix.org
Don't think it's related to vterm (I've installed it many times in many envs). Check your custom-file, maybe something wrong there? 🤷🏻‍♂️
Alright.
21:55:25
@xbow:envs.netCharged
In reply to @joakim:verona.se
maybe try c-u x = to see what emacs says about the font at point?
Not saying anything.
21:56:06
@joakim:verona.sejavec-u c-x =21:56:57
@xbow:envs.netCharged
In reply to @minasmazar:matrix.org
Don't think it's related to vterm (I've installed it many times in many envs). Check your custom-file, maybe something wrong there? 🤷🏻‍♂️
This actually helped, since I use a literate config, I had no idea I had some unwanted stuff in my regular init.el file. Thanks for the help!
21:58:22
@nekifirus:matrix.orgnekifirus set a profile picture.21:58:36
@hab25:matrix.orghab25

Hi, I'm a newcomer to Emacs. I'm trying to activate auto-save-visited-mode and set auto-save-visited-interval only in files tracked by git. The below does not do it, as the variables are set everywhere. How do I achieve what I want?

          (add-hook 'find-file-hook (lambda ()
                                        (when (eq (vc-backend buffer-file-name) 'Git)
                                              (make-local-variable 'auto-save-visited-mode)
                                              (customize-set-variable 'auto-save-visited-mode +1)
                                              (make-local-variable 'auto-save-visited-interval)
                                              (customize-set-variable 'auto-save-visited-interval 0.1))))
22:23:37
@hab25:matrix.orghab25 *

Hi, I'm a newcomer to Emacs. I'm trying to activate auto-save-visited-mode and set auto-save-visited-interval only in files tracked by git. The below does not do it, as the variables are set everywhere. How do I achieve what I want?

          (add-hook 'find-file-hook (lambda ()
                                        (when (eq (vc-backend buffer-file-name) 'Git)
                                              (make-local-variable 'auto-save-visited-mode)
                                              (customize-set-variable 'auto-save-visited-mode +1)
                                              (make-local-variable 'auto-save-visited-interval)
                                              (customize-set-variable 'auto-save-visited-interval 0.1))))
22:23:44
@hab25:matrix.orghab25 *

Hi, I'm a newcomer to Emacs. I'm trying to activate auto-save-visited-mode and set auto-save-visited-interval only in files tracked by git. The below does not do it, as the variables are set everywhere. How do I achieve what I want?

          (add-hook 'find-file-hook (lambda ()
                                        (when (eq (vc-backend buffer-file-name) 'Git)
                                              (make-local-variable 'auto-save-visited-mode)
                                              (customize-set-variable 'auto-save-visited-mode +1)
                                              (make-local-variable 'auto-save-visited-interval)
                                              (customize-set-variable 'auto-save-visited-interval 0.1))))
22:23:55
@hab25:matrix.orghab25I just noticed that the value of find-file-hook is varying per buffer. This may be doomemacs plumbing doing something. 22:37:07
@yantar92:matrix.orgyantar92 (Org contributor)
In reply to @hab25:matrix.org

Hi, I'm a newcomer to Emacs. I'm trying to activate auto-save-visited-mode and set auto-save-visited-interval only in files tracked by git. The below does not do it, as the variables are set everywhere. How do I achieve what I want?

          (add-hook 'find-file-hook (lambda ()
                                        (when (eq (vc-backend buffer-file-name) 'Git)
                                              (make-local-variable 'auto-save-visited-mode)
                                              (customize-set-variable 'auto-save-visited-mode +1)
                                              (make-local-variable 'auto-save-visited-interval)
                                              (customize-set-variable 'auto-save-visited-interval 0.1))))
auto-save-visited-mode is a global minor mode. It is active everywhere once activated
22:39:03
@yantar92:matrix.orgyantar92 (Org contributor)That is: in all buffers22:39:15
@hab25:matrix.orghab25Ah, thank you. How would I have been able to tell this? Maybe by the fact that "Toggle automatic saving of file-visiting buffers to their files." it doesn't say "for the current buffer"?22:40:37
@hab25:matrix.orghab25 *

Ah, thank you. How would I have been able to tell this? Maybe by the fact that

Toggle automatic saving of file-visiting buffers to their files.

doesn't end with "for the current buffer"?

22:41:10
@yantar92:matrix.orgyantar92 (Org contributor)
In reply to @hab25:matrix.org

Ah, thank you. How would I have been able to tell this? Maybe by the fact that

Toggle automatic saving of file-visiting buffers to their files.

doesn't end with "for the current buffer"?

Good question. I looked into the code.
22:42:50
@yantar92:matrix.orgyantar92 (Org contributor)

In any case, what you need appears to be:

You can also set the buffer-local value of the variable
auto-save-visited-mode to nil.  A buffer where the buffer-local
value of this variable is nil is ignored for the purpose of
auto-save-visited-mode, even if auto-save-visited-mode is
enabled.
22:43:12
@yantar92:matrix.orgyantar92 (Org contributor)
In reply to @yantar92:matrix.org
Good question. I looked into the code.
AFAIR, the convention is to have "global" in the mode name for such modes. But apparently it is not the case here
22:44:18
@yantar92:matrix.orgyantar92 (Org contributor)I think I can report upstream. It is a bit confusing22:45:03
@hab25:matrix.orghab25
In reply to @yantar92:matrix.org

In any case, what you need appears to be:

You can also set the buffer-local value of the variable
auto-save-visited-mode to nil.  A buffer where the buffer-local
value of this variable is nil is ignored for the purpose of
auto-save-visited-mode, even if auto-save-visited-mode is
enabled.
Thank you, that works. And now I am also no longer concerned with setting auto-save-visited-interval buffer-locally because I am sufficiently confident that no packages will make use of it and so I will not be unknowingly interfering with their behaviour, since a package activating the global auto-save-visited-mode without warning would be very wild.
22:47:42
@hab25:matrix.orghab25
In reply to @yantar92:matrix.org

In any case, what you need appears to be:

You can also set the buffer-local value of the variable
auto-save-visited-mode to nil.  A buffer where the buffer-local
value of this variable is nil is ignored for the purpose of
auto-save-visited-mode, even if auto-save-visited-mode is
enabled.
* Thank you, that works. And now I am also no longer concerned with setting auto-save-visited-interval buffer-locally because I am sufficiently confident that no packages will make use of it (so I will not be unknowingly interfering with their behaviour); a package activating the global auto-save-visited-mode without warning would be very wild.
22:48:05
@hab25:matrix.orghab25 * Thank you, that works. And now I am also no longer concerned with setting auto-save-visited-interval buffer-locally because I am sufficiently confident that no packages will make use of it in other buffers (so I will not be unknowingly interfering with that behaviour); a package activating the global auto-save-visited-mode without warning would be very wild. 22:53:33
26 Nov 2022
@scarfacelol:matrix.orgscarfacelol joined the room.08:29:48
@necronian:uberpurple.com@necronian:uberpurple.com left the room.13:51:00
@realnyte:matrix.orgrealnyte changed their display name from realnyte (Old) to realnyte.16:33:08
@bady:poddery.comPirate Bady glad to see a mastodon instance of emacs users: https://emacs.sh/about
did anyone notice already? or am i late to the party? :)
17:48:54
@bady:poddery.comPirate Bady* glad to see a mastodon instance of emacs users: https://emacs.ch/about did anyone notice already? or am i late to the party? :)17:50:10
@erkp:matrix.orgpatched Is there a good way to evaluate expressions using emacsclient as if you were evaluating them from the currently active window? Specifically, emacsclient --eval '(save-buffer)' does not save the buffer in the active window. (current-buffer) yields `#<buffer *server*> 18:35:19
@erkp:matrix.orgpatched * Is there a good way to evaluate expressions using emacsclient as if you were evaluating them from the currently active window? Specifically, emacsclient --eval '(save-buffer)' does not save the buffer in the active window. (current-buffer) yields #<buffer \*server\*> 18:35:26
@erkp:matrix.orgpatched * Is there a good way to evaluate expressions using emacsclient as if you were evaluating them from the currently active window? Specifically, emacsclient --eval '(save-buffer)' does not save the buffer in the active window. (current-buffer) yields #<buffer *server*> 18:35:35

There are no newer messages yet.


Back to Room List