Emacs

kompot, Slovenian
@kompot@toot.si avatar

Zapisnik majskega srecanja in letak z vabilom na junijsko srecanje.

https://emacs.si/zapisniki/2024-05-09.html

kickingvegas,
@kickingvegas@sfba.social avatar

Okay here's another Transient I've made a while back, in this case for Avy. A bit esoteric, but this has enabled me to get a lot more out of Avy than just using avy-goto-word-1 or avy-goto-char-timer. Wondering out loud if I should publish this on MELPA.

Also yes, I've read Karthik's post on using Avy wrong. I readily admit I'm not sophisticated enough to put filter-select-act into practice.

hajovonta,
@hajovonta@mastodon.online avatar

@kickingvegas
I think there's demand for them, these transients make life easier for many users, because it makes features more easily accessible.

I agree it wouldn't be a necessarily good thing to have transient libraries for the same packages though. I guess MELPA admins are aware of that.
@mykhaylo

mykhaylo,
@mykhaylo@fosstodon.org avatar

@hajovonta @kickingvegas sure they are a great idea. I just don’t think they should be on MELPA, but admins will figure it out.

ankit,
@ankit@emacs.ch avatar

I ran into some go code that use build tags. My existing test functions didn't work. To handle build-tags, I defined go-build-tags in .dir-locals.el and used the variable in my functions.

((go-ts-mode . ((go-build-tags . "device,json1"))))

https://git.argp.in/ankit/dotfiles/commit/c5c165c830f9f61c88d366b8a01efb083ea4c97a

#emacs #golang

galdor,
@galdor@emacs.ch avatar

While the LSP protocol is useful for completion or access to symbol definitions, some of its features are less appealing. In , you can instruct Eglot to ignore any feature you dislike.

E.g. (setq eglot-ignored-server-capabilities '(:inlayHintProvider)) to remove annoying hints mixed with the code in c-mode with clangd.

tetrislife,

@galdor is that the one that puts formal parameter names next to the actuals in calls? It hasn't seemed off-putting on the occasions I have used it.

mattsheffield,
@mattsheffield@mastodon.social avatar

A question for the community: Is it possible to use the Tramp feature to connect to a remote Emacs daemon? I ask because I have a file which I always have open on a remote pseudo-tty, but sometimes it would be nice to use my desktop Emacs with its nice proportional fonts and custom sizes to edit.

I want to connect to the same remote daemon so I can see unsaved changes and not have to worry about sync.

mattsheffield,
@mattsheffield@mastodon.social avatar

@noahf I want to avoid file sync because the buffer will always be open in one of the many devices I use regularly. Don't want to worry about out of sync copies. There is zero worry about crashes or power failures.

mattsheffield,
@mattsheffield@mastodon.social avatar

@hajovonta @amszmidt I fear I may have to just use Tramp. But it's not the end of the world. It just is interesting to have run into a use case that Emacs maybe can't handle. Never had that before!

stackeffect,
@stackeffect@emacs.ch avatar

Today I learned something new: don't edit "authorized_keys" file in an ssh tramp session when remote disk is full. The moment you (try to) store the new version, Emacs will backup (rename) existing file and try to write a new file. If that fails because of disk full and the file happens to be "authorized_keys" you immediately will lose ssh access to that remote machine.

holgerschurig,

@stackeffect Ouch.

While still online, you can rename the backup.

stackeffect,
@stackeffect@emacs.ch avatar

@holgerschurig I wish this were true. In reality already creation of "authorized_keys~" will fail. You will end up with both files, "authorized_keys" and "authorized_keys~" having a size of 0.

In "Messages" I have this:

Copying /ssh:example.com:/home/someuser/.ssh/authorized_keys to /ssh:example.com:/home/someuser/.ssh/authorized_keys~...failed
File error: Copying directly failed, see buffer ‘tramp/ssh someuser’ for details
Cannot write backup file; backing up in /.emacs.d/%backup%
Copying /ssh:example.com:/home/someuser/.ssh/authorized_keys to /home/someuser/.emacs.d/%backup%~...done

So you will have a backup of the original file content in "%bakcup%~" on your local machine but not on remote machine.

fox,

What about running an update of all my Emacs package in the same time, on a Emacs config I use and evolve since 12 years ?

Seems a good idea. 😆

fox, (edited )

@holgerschurig @ecadre

Tested and I found transcient- functions.

Thank you

holgerschurig,

@fox @ecadre Oh, I meant a different backup: ecternal packages.

From time to time it happens that I update the external packages, i.E. consult, notmuch, etc etc

And it could now be the case that one of these packages introduce an error.

If I don't have time right now to debug this, I can use git to revert this one external package to its previous stage... and pull again in 2 weeks and hoping that someone wiser in ELisp than I fixed the problem in the meantime.

Since my in own config didn't change, backing it up would have made no change. But then again ... my Emacs config is in git, too. So it's automatically backed up the moment I stage a changeset.

eslr,
@eslr@mastodon.social avatar

Great post by Karthik Chikmagalur about window management in Emacs https://karthinks.com/software/emacs-window-management-almanac/

jgomo3,
@jgomo3@mastodon.social avatar

What other reason do you need to use ?

could be the just enough reason. It is too powerful.

Don't edit text, that is too 21 century. Edit Abstract Syntax Trees 😘

https://www.youtube.com/watch?v=D6h5dFyyUX0&lc=UgxpTA3yt-xea2L3XFl4AaABAg.A2nIxXNhy9pA3GBwFeBS6_

mykhaylo,
@mykhaylo@fosstodon.org avatar

@jgomo3 try lispy and puni too

meatlotion,
@meatlotion@mas.erb.pw avatar
ctietze,
@ctietze@mastodon.social avatar
unixbhaskar,
@unixbhaskar@fosstodon.org avatar

A glance at the progress...

ctietze,
@ctietze@mastodon.social avatar

@unixbhaskar post a Magit screenshot, I hit the like button 👍 :)

mms,
@mms@emacs.ch avatar

How would you run create a long process (rsync for example), create a temporary buffer in split for it, tail the output to the buffer so it’s up to date; then if the process exists success close the buffer? Preferably the emacs should not lock the whole time.

holgerschurig,

@mms On Linux I wouldn't do this in Emacs, but from systemd. One can create transient services in it (via api, not via foo.service file).

If needed, I could then run "journalctl --unit foo" in some Emacs buffer, but I don't really see the benefit: I am using Emacs mostly with just one window and frame. So having some process output clutter my spartanic display setup ... naah.

plantarum,
@plantarum@ottawa.place avatar

Casual mode, a better interface for the file manager

https://irreal.org/blog/?p=12162

plantarum,
@plantarum@ottawa.place avatar

is a tool that seems super powerful, but I don't use it often enough to stay familiar with the features. This sounds like a great fix to that issue!

The original announcement from the package author:

http://yummymelon.com/devnull/announcing-casual-dired---an-opinionated-porcelain-for-the-emacs-file-manager.html

SpaceCadet,

Does someone have a function, to link an Heading at point with its own id, creating one if it does not already exist?

So

** Heading

becomes

** [[id:12345678][Heading]]

arialdo,
@arialdo@mastodon.online avatar
rzeta0,
@rzeta0@mastodon.social avatar

lots of discussion about and on mastodon

is this representative of real world trends or just a bubble on mastodon?

amoroso,
@amoroso@fosstodon.org avatar

@rzeta0 I don't know. But what matters to me is I'm having lots of fun with Lisp, even if it's not representative of real world trends.

carcosa,
@carcosa@emacs.ch avatar

@holgerschurig @rzeta0 I do frequently wish Emacs were written in Common Lisp - which has package namespaces and gradual typing. Emacs Lisp is kind of special.

elb,
@elb@social.sdf.org avatar

One of my students opened up today, opened up a GUI file manager, found a file, grabbed the icon, dragged it onto Emacs, and dropped it. And it WORKED. I'm not sure which part distressed me more.

chrishuck,
@chrishuck@fosstodon.org avatar

@vt52 @elb I think you dropped a decade there…

(Don’t worry, I do it too. Remember, 1980 was only 20 years ago… Oh, wait)

elb,
@elb@social.sdf.org avatar

@chrishuck @vt52 What's a half score of years among friends?

AAMfP, (edited )
@AAMfP@fosstodon.org avatar

#askFedi on #Emacs #OrgMode: I'm generating a web page from Org Mode files and it contains some description lists divided by headers.

https://marcoxbresciani.codeberg.page/japan/viaggio-in-giappone.html#vig-citt%C3%A0

Is there a way, even using a different structure (but possibly keeping those items grouped), to have an unique numbering for all those items in the page?

oblomov,
@oblomov@sociale.network avatar

@AAMfP you can either use the start parameter in your ol, generated manually on conversion from org mode, or define a CSS counter and use that in the ::mark (IIRC) of your ol

al3x,
@al3x@hachyderm.io avatar

What am I doing wrong in my attempt to configure the font?

I have the following lines in my init.el:

(set-face-attribute 'default nil :family "Input Mono Compressed" :height 150)  
(set-frame-font "Input Mono Compressed-15" nil t)  

If I execute them, I get what I want.
But when part of the init.el they seem to get reset.
If I include them towards the top of the init.el,
I can notice the larger font and then it "disappears".

Please send doctors :-D.

louis,
@louis@emacs.ch avatar

@al3x Since I had a similar issue, look at the end of your init.el, where you have your (custom-set-variables ...) (which is created by the customize facility). It is very likely that you once changed your font interactively with customize and have this configuration still in your init.el.

Neblib,
@Neblib@mastodo.neoliber.al avatar

anyone have a working setup with logseq (in orgdown) and playing nice in logseq's folder (orgroam dailies in 'journals', etc)? Currently my vault is a mix of org and md but I'm hoping to at least get the org files recognized while I work on converting the md (or figure out ). I tried playing with org-logseq but even though I'm matching correctly on its grep for the folder and I have title properties I couldn't get it working after a good attempt.

wigol,

@Neblib I "kind of" do. I am using heavily modified org-roam-logseq.el though. There still are some issues, e.g. Logseq fails to recognize ID references as backlinks (linking itself works).
I was planning a blog post about my setup, but with recent news about Logseq DB development I am considering ditching it.

Neblib,
@Neblib@mastodo.neoliber.al avatar

@wigol yeah the logseq db announcement was a bit disappointing for sure. Emacs 30 being on Android takes away some of the reasons for a logseq as the mobile end of a org workflow, especially if developer interest refines that mobile experience further.

andros,
@andros@hostux.social avatar

I publish a new article: «Creating desktop applications using the Emacs core»
https://programadorwebvalencia.com/creating-desktop-applications-using-the-emacs-core/

In summary, I can use Emacs to create GUIs with an Elisp backend.

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@andros @marcolas The problem is that developers have prioritized their own convenience while wasting users’ time learning each app and wasting users’ money on more computing power, memory, and storage

mjgardner,
@mjgardner@social.sdf.org avatar

@boo_ @andros I didn’t foresee anyone turning Google’s browser engine V8 (2008) into the server (, 2009) and desktop (, 2013) runtimes that ate the world, but here we are.

And Electron was originally developed for ’s text editor (2008) before they were acquired by in 2018, subsequently discontinued in favor of in 2022.

Don’t tell me what you can’t see happening if you don’t remember what already did

jbaty,
@jbaty@social.lol avatar

The Howm #emacs package does certain things much like TiddlyWiki does. In a good way. https://baty.net/2024/05/howm-reminds-me-of-tiddlywiki

greg,
@greg@gregnewman.io avatar

@jbaty

> I should write about how the combination of Howm and Denote fit into my process.

Yes please

fd9a,

You can now submit tickets to SourceHut using emacs and transient.

https://git.sr.ht/~akagi/srht.el/tree/pre-0.5/lisp/srht-todo.el

ctietze,
@ctietze@mastodon.social avatar

@fd9a I didn't know the ticket system shipped, thanks! That's cool.

mykhaylo,
@mykhaylo@fosstodon.org avatar

context-transient for is now on

I've been using it for several weeks and find it extremely convenient.

https://github.com/licht1stein/context-transient.el

bram85,
@bram85@emacs.ch avatar

Inspired by @howard 's recent post sharing his configuration, I'm sharing mine. Elfeed is a powerful RSS feed reader for with a number of hooks to customize it.

My configuration:

https://apps.bram85.nl/git/bram/gists/src/commit/fd3d0991055863526be07dd12f4857ab32826768/gists/elfeed.el

Among others, it contains the following elements:

  • Custom function for printing entries:

  • Relative dates (using the relative-date package by @rougier )

  • Tags printed in :orgmode: notation

  • Ability to omit some tags from printing.

  • Record read dates in the elfeed database when entries are opened.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • DreamBathrooms
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • InstantRegret
  • tacticalgear
  • anitta
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines