Emacs

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.

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.

eslr,
@eslr@mastodon.social avatar

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

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.

kompot, Slovenian
@kompot@toot.si avatar

Zapisnik majskega srecanja in letak z vabilom na junijsko srecanje.

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

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

rahguzar,
@rahguzar@emacs.ch avatar

I passively read the subreddit but I have zero desire to be on reddit. Often I come across questions I think I know the answer to and can only hope someone else answers it (and most of the time someone does it).

Case in point: https://old.reddit.com/r/emacs/comments/1coumhm/elisp_determine_if_mouse_posn_is_within_region/

I think they are looking for posn-point.

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 👍 :)

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

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.

SpaceCadet,
@SpaceCadet@emacs.ch avatar

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
svbck,
@svbck@fosstodon.org avatar

Transients are seemingly getting more common (see Casual dired) so I decided to share my EMMS-dired-player transient.

I have been using it for a while and it does what I want it to do.

More here:

https://svbck.org/blog/2024-05-09-emms-dired-player-transient.html

zrzz,

My discovery for today is dired-omit-mode. It hides less interesting files (object files, backups etc). There are a few options to tweak what you want hidden.

The default binding is C-x M-o but I've also put it on just M-o in my config so that I can toggle it quickly.

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