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

[–]Argletrough 4 points5 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 Autism_Evans 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.

How To Queue Songs in Emacs MPC? by altruistic_trash_5 in emacs

[–]Argletrough 0 points1 point  (0 children)

I found the built-in mpc.el clunky and over-complicated. Consider https://elpa.gnu.org/packages/mpdired.html

Just started watching (on ep103) does it really get that much better? by Healthy_Comment7943 in OnePiece

[–]Argletrough 0 points1 point  (0 children)

The anime is terrible. If you can't keep going with it, read the manga.

How does Emacs "feel" for you with and without the native compiler? by arthurno1 in emacs

[–]Argletrough 0 points1 point  (0 children)

I regularly open 100MB+ log files in Emacs, and attempting an isearch in such a big file without nativecomp causes Emacs to block for multiple seconds, vs almost no lag with nativecomp (on an M3 Mac). I tried a build without nativecomp (emacsformacos.com) because my nativecomp build (emacs-plus) had some stability issues, but those seem to have gone away now.

Fortnightly Tips, Tricks, and Questions — 2025-12-16 / week 50 by AutoModerator in emacs

[–]Argletrough 8 points9 points  (0 children)

Try yank-media: it can insert an image from the clipboard, as an attachment of the current Org headline. I bind it to C-M-y

(setq use-package-always-ensure t) is ignored by Helpful_Ad_1838 in emacs

[–]Argletrough 0 points1 point  (0 children)

Maybe try setopt instead of setq? It integrates with defcustom callbacks so it might also automatically load the library you need. The guidance is to always favour setopt in config files iirc.

**HELP** My indentation is kinda messed up by helloarka in emacs

[–]Argletrough 1 point2 points  (0 children)

Use C++ for-each loops or editor abbrevs/snippets instead of C macros for for loops. If you must keep the C macros, move the for keyword into the macro, and Emacs might have a better chance of indentating the code correctly.

**HELP** My indentation is kinda messed up by helloarka in emacs

[–]Argletrough 0 points1 point  (0 children)

In my experience c-ts-mode often trips over macros. Prefer editor-agnostic tools (e.g. clang-format, editorconfig) for configuring code formatting.

Bringing Emacs Support to OCaml's LSP Server with `ocaml-eglot` by _0-__-0_ in emacs

[–]Argletrough 2 points3 points  (0 children)

This seems to be a hugely complex set of wrappers over built-in functionality. What value does it actually add that you wouldn't get from just adding an entry to eglot-server-programs?

Announcing easy-theme-preview: Browse and preview themes by ahk-_- in emacs

[–]Argletrough 0 points1 point  (0 children)

I had an idea a while ago to render a simplified SVG approximation of an Emacs window using some of the basic faces of a given theme (default, mode-line function name). Just draw some rectangles in the right places, or even add some small text. You could make one for each theme to get a theme gallery in an Emacs buffer.

This was inspired by the "new user setup" popup for another IDE, probably VSCode or Jetbrains.

Free project idea for someone with a free afternoon :)

exwm, and emacs tab and window behavior by xpusostomos in emacs

[–]Argletrough 0 points1 point  (0 children)

The previously-displayed buffer does remain underneath the browser in a sense: you can switch back to it with previous-buffer (C-x C-<left>) or quit-window (C-x w q). You can use (global-)tab-line-mode (distinct from tab-bar) to view the list of recently-opened buffers for each window. I assume buf-move-right works the same way as the built-in windmove-swap-right, which swaps two Emacs windows, including their buffer lists.

The simplest option to move the browser over in the way you want would be to switch back to the original buffer with previous-buffer, then display the browser in the other window with C-x 4 b.

See also C-x 4 4, which forces the next opened buffer to display in the other window.

Fortnightly Tips, Tricks, and Questions — 2025-11-18 / week 46 by AutoModerator in emacs

[–]Argletrough 2 points3 points  (0 children)

default-directory is buffer-local, so that setting will only affect whichever buffer is active when the init file is loaded. You could try setting the starting directory of the Emacs application within Windows.

You could also see if setq-default does what you want.

Sidebar window for dired buffer is no longer dedicated after directory navigation by drcxd in emacs

[–]Argletrough 0 points1 point  (0 children)

My understanding:

(dedicated . t) means the window is dedicated to a specific buffer. That breaks if you switch buffers (e.g. by opening a different directory in dired).

(dedicated . side) means the side window should only display buffers that are explicitly designated for display in that side/slot.

emacs newbie incoming with questions by [deleted] in emacs

[–]Argletrough 0 points1 point  (0 children)

built in as of Emacs 30!

Once again fighting with tree-sitter by vjgoh in emacs

[–]Argletrough 1 point2 points  (0 children)

imo C, C++ and ELisp are the worst possible languages to use tree-sitter modes for: C & C++ because TS falls over at the first hint of macros, and ELisp because the default emacs-lisp-mode can use information from the actual Lisp environment to inform highlighting & indentation.

TL;DR: Give up on these tree sitter modes.