Emacs

2122 readers
3 users here now

Our infinitely powerful editor.

founded 4 years ago
MODERATORS
1
2
3
submitted 1 week ago* (last edited 1 week ago) by highduc@lemmy.ml to c/emacs@lemmy.ml
 
 

Hi!

I'm trying to run the emacs daemon as a systemd user unit, and I'm seeing this error when trying to launch the GUI client:

Authorization required, but no authorization protocol specified

From what I've seen online it might be due to it trying to start before I'm logged in or something like that.
It does work after restarting the unit but I don't want to do that every time.

Anyone else see this before? Any ideas for a fix? Is there a better way of starting the emacs daemon?

3
4
 
 

I'm coming across stuff on the emacs wiki like Project Buffer Mode and SLN Mode

Are these old packages like everything else in Linux; not relevant or usable any more? I'm not sure if "just try them" is the right idea here, or even how to go about doing that (yet). Do you have any other suggestions or options? I'm trying to see the project view of the open source game Cataclysm DDA. They seem to be using a Windows system for development now and I'm seeing several little elements that are not getting compiled the same between their builds and what make produces with GCC. Perhaps the stuff in the project files would reveal more detail. (learning, but this is over my head and outside of my comfort zone)

5
6
 
 

I figure I would share this one more time. The thing is so handy I put it on my desktop but the original is blinding white and 1.5:1 aspect ratio. This is a quick recolor and resize to 16:9. There is a 90px margin on top that is sized for the GNOME header so that the content remains visible. Sorry if this post seems redundant. For me, having this reminder to keep trying to use Emacs is just the motivation I need to open a file in Emacs instead of just using gedit quickly.

::: spoiler bonus tip! On Fedora 40, if you have darkmode set to the default in GNOME, GNU Emacs does not follow the darkmode styling directive for the menu bar. I spent forever trying to make this work in darkmode. If the app is launched using $ GTK_THEME=Adwaita:dark emacs it will start with the menu bar set to dark mode.

However there is a script that actually launches Emacs in /user/bin/emacs-desktop. If you open that file and modify it by adding export GTK_THEME=Adwaita:dark emacs just before the last line, it will launch with darkmode enabled. This is the entire contents of that file:

#!/usr/bin/sh

# The pure GTK build of emacs is not supported on X11, so try to avoid
# using if there is an alternative.

if [ "$XDG_SESSION_TYPE" = 'x11' ]; then
    case "$(readlink -f /usr/bin/emacs)" in
    */emacs-*.*-pgtk)
        if type emacs-gtk+x11 >/dev/null; then
            exec emacs-gtk+x11 "$@"
        elif type emacs-lucid >/dev/null; then
            exec emacs-lucid "$@"
        fi
        ;;
    esac
fi

export GTK_THEME=Adwaita:dark emacs
exec emacs "$@"

I'm not claiming it is the right way. It just worked when I tried it.

7
8
 
 

Sometimes I do write-ups of the monthly Austin Emacs meetup. Here is the write-up for August.

9
 
 

I am excited to finally announce the release of Forge version 0.4.0, consisting of 699 commits since the last release two years ago. It was actually released six days ago, at the same time as Magit and nine other packages, which all had to be released at the same time.

10
11
 
 

Seems helpful for noobs like me.

12
 
 

I felt clunky doing NVIM and could never remember hotkeys for once a week -ish in-situ functional learning. Like I jump in FreeCAD for a few days, come back, and I can't recall a hotkey combo I only used once.

I think I can use Emacs lisp for some actual project goals with AI and other microcontroller projects involving FORTH, that I've never been able to figure out, and code complexity management issues I've never overcome. I still want the menu bar and am really unsure if the evil key bindings are for me. I would probably find it useful if I knew the vim bindings in situations like OpenWRT with busybox only, but it was the extreme complexity of navigating nvim help and key bindings that I found so useless to learn in-situ. Help me navigate this please. I'm being indecisive in a bad way about how to make this pretty, and get it configured.

13
18
submitted 1 month ago* (last edited 1 month ago) by 4ffy@lemmy.ml to c/emacs@lemmy.ml
 
 

I am excited and relieved to finally announce the release of Magit version 4.0, consisting of 1077 commits, since the last release three years ago. The release notes can be found here.

14
15
16
17
18
19
20
 
 

I've been theming emacs, trying to get it to look just right, but the lack of a per face line spacing is making it kind of difficult. I've tried to use :box as a hack to add invisible spacing, but that started to look weird when the region is highlighted. Does anyone know why there doesn't seem to be much interest or discussion on this topic? I'd love to be able to just add a top or bottom margin to headings like in css.

21
1
Emacs RFC 2646 email flowing (idiomdrottning.org)
submitted 2 months ago* (last edited 2 months ago) by Sandra@idiomdrottning.org to c/emacs@lemmy.ml
 
 

Emacs RFC 2646 email flowing

Heck it Emacs!

A few months ago I fixed a bug in RFC 2646 handling where the last paragraph wouldn't get reflowed unless I remembered to add a hard newline (that is, a newline with the 'hard text property) after it, at EOT. I needed to hit one extra RET at the end. All other paragraphs would be wrapped, not just the last one.

(I even bugged @jas@fosstodon.org about it.)

But it still didn't always work and today I tried to get to the bottom of why, spending the entire day debugging it, finally realizing that... It's not even being called when there's only one paragraph in the email. I wasted so much time before realizing that! And then getting to the bottom of why that wasn't happening was the opposite of easy but it turnes out that Gnus by design doesn't call the fill-flowed-encode function when there aren't any hard newlines in the buffer. Which there aren't gonna be if it's a single-paragraph letter 🤦🏻‍♀️

Use-hard-newlines is beyond useless since that's always buffer-local and the text-reflowing is being done in a temp buffer. Instead since 2010 we're supposed to set mml-enable-flowed to true. But don't worry, fans of the messages-are-flowing package, I'm gonna send patches there to reflect that. I have a bunch of other changes to that package too since I've been using that a lot this summer.

This is all in bug#71017 (cursed palindrome!) for people who wanna dig in 👩🏻‍🏫

@emacs@lemmy.ml

22
23
24
 
 

I've been using konsole (and iterm2 on my work mac) for most of my working career, but on the linux side, I've recently switched to Kitty, but now I'm wondering if I can finally get used to just using emacs on both.

Does anyone use emacs as their main terminal? Is there one better than ansi-term that supports modern features like libsixel?

I still can't quite get used to the keybindings (like C-c twice for ^C) and some other weirdness.

25
view more: next ›