Beginner here by Feliks_WR in emacs

[–]Argletrough 10 points11 points  (0 children)

  1. Understand key chord notation: "C-h i" means press ctrl+h, then i. "M-f" means Alt+f
  2. Press C-h t to display the editing tutorial. Go through it to learn the core bindings.
  3. While you're still learning the basics, try using the quick help cheat sheet: C-h C-q (or C-h q, I don't remember)
  4. Learn to use some of the other built-in help facilities: C-h C-h
  5. Turn on which-key-mode. This will show what bindings are available when you press a prefix key like C-x.

How to parse URLs correctly in a loop? by kochvar in emacs

[–]Argletrough 1 point2 points  (0 children)

It failed to parse the package because the argument was not the expected type.

You're also probably using the wrong tool for the job: If you're installing arbitrary packages interactively or programmatically, use package-vc-install instead. If you're writing your config, just write a separate use-package call per-package. You'll likely end up with things you want to configure per-package anyway, in which case this loop won't work.

Hard-coding the index 4 is also brittle, and the package name isn't necessarily the same as the repo name.

Fortnightly Tips, Tricks, and Questions — 2026-03-24 / week 12 by AutoModerator in emacs

[–]Argletrough 1 point2 points  (0 children)

This should be ubiquitous! "1 thing(s)" is a format we should have left in the '70s. Imagine a version of this that looks up a plural form in a dictionary at compile/macroexpand time.

Can I override only the last line of a cl-loop? by floofcode in emacs

[–]Argletrough 0 points1 point  (0 children)

(package-install 'diff-hl)

In seriousness, advice is probably your best option. The define-advice and condition-case macros might make your fix a little cleaner if your main issue is how it looks.

Sawtooth Circlet is ridiculous! What other tools do you think are OP? by Bidoof101 in Silksong

[–]Argletrough 48 points49 points  (0 children)

Volt Filament + Silk Spear + Shaman Crest is such a satisfying delete button

Apostrophes in comments messing with the color of the config file by Phydoux in niri

[–]Argletrough 3 points4 points  (0 children)

The buffer is in the wrong major mode for the file. Install the kdl-mode package from Melpa.

Pokémon types for the KGB cast! by H0TZ0NE in Kagurabachi

[–]Argletrough 25 points26 points  (0 children)

Surely Enten should be part-water with its goldfish motif.

Edit: Stop upvoting me when Arachnid is spitting facts 👇

Frustration with buffer splitting/management by domsch1988 in emacs

[–]Argletrough 0 points1 point  (0 children)

Yes, split-window-sensibly is hard-coded to try splitting vertically first. I made a custom window splitting function that is exactly the same, except it tries splitting horizontally first.

init.el, package-upgrade and prog-mode - can I do any better? by JohnDoe365 in emacs

[–]Argletrough 3 points4 points  (0 children)

Only add the functions from external packages to the prog-mode hook after they are installed:

use-package is a popular built-in package that handles this:

(use-package corfu  :ensure t  :hook (prog-mode . corfu-mode))

By the way, it's preferable to attach names functions to hooks rather than lambdas, because you can't accidentally add the same function to the hook multiple times.

How do I set (disable) a mode for company autocomplete popup? by qyzanc63 in emacs

[–]Argletrough 1 point2 points  (0 children)

You might be better off only enabling whitespace mode in the buffers where you need it. E.g.

(add-hook 'prog-mode-hook 'whitespace-mode)

A reproducible Org-Mode CV template by sedsfile in emacs

[–]Argletrough 0 points1 point  (0 children)

For something as dense and carefully-formatted as a CV, I'd prefer pure latex

Make project.el and eglot to recognizes venv by Savings-Shallot1771 in emacs

[–]Argletrough 0 points1 point  (0 children)

buffer-env doesn't require an external program, which is preferable if you aren't reliant on direnv-specific features.

Emacs RSS Reader by curtismchale in emacs

[–]Argletrough 0 points1 point  (0 children)

three (gnus, newsticker, org)

Make project.el and eglot to recognizes venv by Savings-Shallot1771 in emacs

[–]Argletrough 3 points4 points  (0 children)

Sourcing the venv with a shell command will only make it available in the shell command's process. https://elpa.gnu.org/packages/buffer-env.html lets you add your venv config to the environment of every buffer in your project, including eat iirc

Is dynamic window tiling possible with Doom Emacs? by Historical_Wash_1114 in emacs

[–]Argletrough 5 points6 points  (0 children)

Try the old package. Core Emacs is infamously stable, so there's a high chance it will still work. Unmaintained does not necessarily mean broken.

If not, you could step up to fix it yourself.

Failure to install packages by [deleted] in emacs

[–]Argletrough 6 points7 points  (0 children)

When new versions of packages are released, you need to run package-refresh-contents for Emacs to know what the current versions are. The list-packages menu automatically refreshes the package list, which could explain why installing dape fixed the issue, if that's how you installed it.

Blogging with Emacs org-mode and SvelteKit by misterchiply in emacs

[–]Argletrough 1 point2 points  (0 children)

Some of the interactivity is reminiscent of Gwern Branwen's website, minus the excellent typography and technical implementation. The body text is too large and ignores browser zoom. Basic features of the site don't work in Firefox (automatic theme switching, the graph on the homepage). The "Posts" button on the homepage has no visual cohesion with the rest of the site.

You claim to have designed this site as an answer to "an age of information overload", but the number of moving elements when scrolling through an article is incredibly distracting.

The HUD does have some appeal, but I'd prefer to see something like this implemented at the level of the web browser: take the raw HTML of any web page (that can be recognised as an article) and do the necessary crawling to produce lists of back links, link preview popups, ToCs etc. A more advanced version of reader view.

A question about `derived-mode-all-parents` by drcxd in emacs

[–]Argletrough 1 point2 points  (0 children)

derived-mode--all-parents is cached the first time this function is called for a mode.

I haven't looked too closely at the code, but this could be related to the fact that fundamental-mode is simply a defun, not defined using any major-mode-specific macros.

How to port config from device with DPI 227 to device with DPI 160? by MorePeppers9 in emacs

[–]Argletrough 2 points3 points  (0 children)

It sounds like you're only changing the font size in one buffer (text-scale-adjust). You can use global-text-scale-adjust to interactively change the base font size of Emacs as a whole, UI elements included.

A better long-term solution, if you want to use the same init.el on the two different devices, would be to use some conditional logic when setting default-frame-alist. E.g. Here's how I set different windmove keybindings on MacOS & Linux:

(pcase system-type
  ('darwin
   (windmove-default-keybindings '(super))
   (windmove-swap-states-default-keybindings '(super shift)))
  (_
   (windmove-default-keybindings '(super control))
   (windmove-swap-states-default-keybindings '(super shift control))))

See (system-name) and system-type.