reddit / emacs

Emacs DWIM shell-command

xenodium · 2022-07-07 08:06
xenodium · 2022-07-07 08:08
The demo gif is one of the use cases. Being DWIM, there are a bunch more at [https://xenodium.com/emacs-dwim-shell-command](https://xenodium.com/emacs-dwim-shell-command) and code at https://github.com/xenodium/dotsies/blob/main/emacs/ar/dwim-shell-command.el
vx_id · 2022-07-07 08:14
Dired is the gift that keeps on giving. Thanks!
xenodium · 2022-07-07 08:24
Agree. Dired seemed so basic on the surface, but man does it pack a punch!
Atemu12 · 2022-07-07 11:17
How did you get your title bar to blend into the buffer so perfectly?
xenodium · 2022-07-07 11:21
It's been a while since I've looked at this (some may be obsolete), but I have this in my config: ;; Transparent titlebar on macOS. (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t)) (add-to-list 'default-frame-alist '(ns-appearance . dark)) I'm also on https://github.com/d12frosted/homebrew-emacs-plus
Atemu12 · 2022-07-07 11:59
Thanks! Will look into it.
Aaronzinhoo · 2022-07-07 21:12
Not related but just curious, do you ever have issues with too many files open error On your eMacs? I use the same eMacs formulae for eMacs28 and 29.
ramin-honary-xc · 2022-07-08 04:19
Everything I do in Emacs begins with Dired. I never open just one file, I always open a project directory as my starting point and go to the files or launch asynchronous shell commands from there.
Drfiresign · 2022-07-08 04:37
It's probably because your system has [too low a number of maximum file descriptors](https://synthomat.de/blog/2020/01/increasing-the-file-descriptor-limit-on-macos/). MacOS's number is notoriously low and Emacs will hit that limit pretty fast if you're working in multiple projects and use a language server of any kind.
xenodium · 2022-07-08 07:47
argh... I used to hit this problem a few years ago. For me, it happened frequently with mu4e. However, I can't remember if it was an Emacs upgrade or mu4e upgrade that did the trick. I also don't have a higher limit set (which is often the solution offered). ulimit -n 1024 I did see a post about this somewhat recently https://irreal.org/blog/?p=10550
Phil-Hudson · 2022-07-15 12:22
eMacs were late-1990s Apple Macintoshes designed for the education market.
Atemu12 · 2022-07-30 13:27
Worked, thank you! Do you know how to customise the gutter colour? It's got a different colour than the background in my theme.
xenodium · 2022-08-04 20:47
Probably the fringe ;; No color for fringe, blends with the rest of the window. (with-eval-after-load 'fringe (set-face-attribute 'fringe nil :foreground (face-foreground 'default) :background (face-background 'default))) All my theme overrides are over at: https://github.com/xenodium/dotsies/blob/main/emacs/features/fe-ui.el