[syndicated profile] emacs_reddit_feed

Posted by /u/floofcode

I'm using powerline on my remote server to generate the prompt. When I try opening a remote file with tramp, it completely hangs my Emacs. I don't know how to even debug this because there's nothing shown when I start Emacs with --debug-init. I've also tried starting it with just -Q and the result is the same.

It works fine if I disable powerline. There was a post about a similiar issue 2 years ago, also without a solution and it looks related to my issue.

Is this something that has a workaround as a configuration change or is it just broken?

I have tried this but no luck:

(setq tramp-remote-shell "/bin/bash") (setq tramp-remote-shell-args '("--norc" "--noprofile" "-i")) 
submitted by /u/floofcode
[link] [comments]

Completely new to emacs

Jun. 16th, 2025 03:06 am
[syndicated profile] emacs_reddit_feed

Posted by /u/Informal-Silver-2810

Hello,

I've been "on the other side" (vim and now neovim) for about 20 years now. I somehow never even attempted to use emacs, though I am well aware that is is an incredibly powerful piece of software. So to make a long story short, I challenged myself to daily drive it for a month - without evil mode, which I've found out about online.

My question for any experienced users willing to answer is this: where to start? How to start? I'm working my way through the tutorial and I started emacs as a service. What's next?

I should mention I have 0 experience with lisp but I'm sure I'll figure it out.

Thank you

submitted by /u/Informal-Silver-2810
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/vjgoh

I'm using Emacs 30.1 on MacOS.

I've both installed the C grammar using treesit-install-language-grammar and also by grabbing the repo and makeing it and then copying the dylib over to the ~/emacs.d/tree-sitter directory. I've installed both in the base directory and also in the tree-sitter/grammars/c directory.

I keep getting this, no matter what

⛔ Warning (treesit): Cannot activate tree-sitter, because language grammar for c is unavailable (version-mismatch): 15 

I don't seem to be having the same problem with the C++ version.

I guess to a certain extent it doesn't matter; I'm really only going to be using c++, but this is still somewhat infuriating. Any help?

submitted by /u/vjgoh
[link] [comments]

Fun with GPTel: gptel-prompts

Jun. 15th, 2025 09:49 pm
[syndicated profile] emacs_reddit_feed

Posted by /u/jwiegley

I've been using GPTel a lot lately, for many different tasks, and wanted to start sharing some of the packages I've built on top of it to aid my work.

The first of these is gptel-prompts, which lets you define entries for gptel-directives using individual files instead of Lisp. Several types of files are supported:

  • Plain text files (Org, Markdown, Text) that correspond to string directives.

  • Emacs Lisp Data files (.eld), which correspond to Lisp lists (see the docstring for gptel-directives for more information).

  • Emacs Lisp Functions (.el), which must evaluate to a function that, when called, returns a string or a list as above.

  • And files in Prompt Poet format (.poet), which is a Yaml format for modelling user/assistant interactions, with optional additional support for Jinja-style templating.

It's a pretty simple module right now, since it's aims to only do one task well, but it does offer a few additional niceties: Optionally using filenotify to update directives whenever the file changes; and support for project-specific system prompts, such as those supported by Claude Code, etc.

Next up in a few days will be ob-gptel, an Org-babel backend that makes GPTel available via source blocks in any Org file — not just chat files — but this needs a bit more testing and documentation before I announce further.

submitted by /u/jwiegley
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/surveypoodle

After looking at other people's code, I came to realize function names and macros can have special characters. I see Doom using functions/macros like package! +advice, etc. I see some other people name them custom/function-name, I see others doing my/function-name.

I don't know if some characters are worse than others (for readability sake). For example, I was thinking about using +package as a macro but don't know if this conflicts/confuses with something. I see that the > character is not allowed. What other interesting ways to name functions exist in Elisp that I might have not seen?

I'm writing a package and looking for a naming convention to stick with, but because I don't have much experience writing Elisp, I'm not so sure what is elegant and ugly.

submitted by /u/surveypoodle
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/floofcode

I'm reading that native compilation makes debugging harder, and has minimal improvement on startup times. I don't have any issues with my current set of packages so I don't think I need to do any debugging as such, so I'm thinking is there any other reason why I might not want native compilation?

submitted by /u/floofcode
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/federvar

Hi there, I'm trying to write my text in markdown, and I miss terribly the M-UP (org-move-subtree-up) M-DOWN (org-move-subtree-down) functionality of org-mode. I'm in markdown-mode. Any hint on how to achieve this?

submitted by /u/federvar
[link] [comments]

Im lost

Jun. 15th, 2025 01:18 pm
[syndicated profile] emacs_reddit_feed

Posted by /u/Synapsyyy

Im new to using emacs, and i installed and read the tutorial, learn the motions and i like it so much
So i wanna migrate of using vscode to emacs but I really miss autocomplete and I don't know if it's possible on emacs, apart from customization etc. which I don't know how it works, I need a north

submitted by /u/Synapsyyy
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/IAFalcon

I've been working on a theme collection based on the philosophy that constraint breeds creativity. Instead of using dozens of colors that compete for attention, each theme in this collection uses exactly:

  • 2 main colors for syntax highlighting (closely related tones)
  • 1 accent color for strings and comments

This creates visual harmony while reducing cognitive load - your brain can focus on code, not colors.

The Collection (so far)

6 Dark Themes:

  • doom-navy-copper - Nautical sophistication
  • doom-burgundy-rose - Wine bar luxury
  • doom-purple-gold - Royal elegance
  • doom-silver-slate - Brushed metal aesthetic
  • doom-cyan-charcoal - High-tech futuristic
  • doom-orange-grey - Warm minimalism

6 Light Themes:

  • doom-dusty-steel - Calming professional blues
  • doom-warm-charcoal - Minimalist gray + teal
  • doom-pink-sunshine - Pop-art energy
  • doom-teal-terracotta - Earthy warmth
  • doom-ocean-gold - Seaside refresh
  • doom-slate-mushroom - Business premium

Installation (Doom Emacs)

Add to your packages.el:

(package! doom-two-tone-themes :recipe (:host github :repo "eliraz-refael/doom-two-tone-themes")) 

Then in config.el:

(setq doom-theme 'doom-burgundy-rose) ; or any theme you prefer 

Design Philosophy

Each theme tells a visual story through intentional color relationships. Whether it's the nautical inspiration of navy-copper or the wine bar sophistication of burgundy-rose, every color choice serves a purpose.

GitHub: https://github.com/eliraz-refael/doom-two-tone-themes

8 more themes are planned - aiming for 20 total! Feedback and suggestions welcome.

Note: Designed and tested specifically for Doom Emacs, though may work with vanilla Emacs.

https://preview.redd.it/2t0ysj2n437f1.png?width=2652&format=png&auto=webp&s=17a70a285d2e0e4a108cd4c6bb5224a0194e742e

https://preview.redd.it/m5mvdd2n437f1.png?width=2652&format=png&auto=webp&s=276f2fd8962b694c416613fb8b15d74ed6232417

https://preview.redd.it/dd6n2d2n437f1.png?width=2652&format=png&auto=webp&s=0242650d1bd6d534c67d56a808bfdbf7690bbc1d

https://preview.redd.it/peef2e2n437f1.png?width=2652&format=png&auto=webp&s=e412088d81fad02e85b0778c60f6a4c7cd2db79d

https://preview.redd.it/si7r9d2n437f1.png?width=2652&format=png&auto=webp&s=f0724892c66e18f69e586149c4d8bd58ab0a1582

https://preview.redd.it/bg3e4h2n437f1.png?width=2652&format=png&auto=webp&s=039b4942dcc468925f99697b79625f834af0f51c

https://preview.redd.it/y128be2n437f1.png?width=2652&format=png&auto=webp&s=baa8652f9881d7805392aab59e249c8cf18fd1a4

https://preview.redd.it/q7aet33n437f1.png?width=2652&format=png&auto=webp&s=9900f26795ecf051b0ab7fff9fe961808f7d6996

https://preview.redd.it/esezrc2n437f1.png?width=2652&format=png&auto=webp&s=f06cd47cb7f2f6ede90311d3ef9b4e55e2b14427

https://preview.redd.it/1jhm3e2n437f1.png?width=2652&format=png&auto=webp&s=0f6568675c1f9c059760bf1d37d937b7b3aa9f9d

https://preview.redd.it/ac8brc2n437f1.png?width=2652&format=png&auto=webp&s=a57d1e2624f186ee66f7ded01b060f049b6ddf05

https://preview.redd.it/znayye4n437f1.png?width=2652&format=png&auto=webp&s=ad8fa5cf0cf9a67125ea0febcacda7bd14e05bd8

submitted by /u/IAFalcon
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/signalclown

Emacs allows you to append to your load-path, so you can have multiple configuration files, but most of the time when I look at someone's config, it's just one giant config file.

I'm wondering about keeping separate files for cosmetic changes, navigation, package-specific or language-specific configurations, etc. Perhaps something like:

├── appearance.el ├── bindings.el ├── core.el ├── early-init.el ├── hooks.el ├── init.el ├── lang │ ├── c.el │ ├── go.el │ └── python.el ├── macros.el ├── navigation.el └── overrides ├── magit.el └── treemacs.el 

Really curious if anyone maintaining some structure similar to this so I can improve on this.

submitted by /u/signalclown
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/birdsintheskies

Part of the reason why I switched from Vim to Emacs a long time ago was my belief in the viability of Emacs Lisp being more stable in the long run. Even though I didn't know any Lisp at the time, I thought of Emacs Lisp as something I might want to, even though I didn't really know anything about it at the time. It paid off, because I ended up being able to do customizations in Emacs that I had previously found a bit cumbersome to do in Vim or Neovim.

Emacs keybindings are already there in the default shell, and we even have a prophet. Yet one community vastly outnumbers the other one. I get that Emacs itself is kind of a niche thing, but I'm wondering what is it that people find more appealing in the other editors than Emacs.

submitted by /u/birdsintheskies
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/birdsintheskies

Coming from the Vim and Neovim universe and working primarily over SSH, I was more used to running it in the terminal. Even when I used it on my local machine, I was still running it in a terminal, mostly because the GUI version looked fugly and didnt seem to do anything that I couldn't do in the terminal already.

Now that I'm in the Emacs universe, I disabled the menubar, etc. and there isn't any visible difference between the GUI and TUI. Besides some basic improvements like clipboard integration, etc. does the the GUI have any other actual advantages or is it just to make it prettier?

submitted by /u/birdsintheskies
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/sauntcartas

I've long noted that when I copy a file from one Dired buffer to another, the files are given a C mark in the destination buffer. More recently I've been hard-linking files sometimes instead of copying them, and in that case they get an H mark in the new buffer.

I have not yet happened upon a use for these marks, and I tend to remove them immediately with * ! because they're distracting. Before I go looking for a way to disable them, can anyone suggest a good use for them?

submitted by /u/sauntcartas
[link] [comments]

Unable to add-to-list

Jun. 15th, 2025 01:37 am
[syndicated profile] emacs_reddit_feed

Posted by /u/SergioWrites

I am having a problem: when I try to add my present-working-directory variable to my dirs list, I get a wrong argument error. What im seeing is that apparently, present-working-directory is actually a lisp of strings, the strings being the names of every file and directory in my home directory. However, when I run (message "%s" present-working-directory) instead of the add-to-list function, I get output as a string. I have tried solving this by doing (add-to-list 'dirs (format "%s" present-working-directory)), but this results in the same error. Can anyone give me a hint as to why this happens?

Heres my code:

(defvar present-working-directory nil) (defvar dirs (list ())) (defun init () (setq present-working-directory (read-string "please enter a directory: " (getenv "HOME"))) (unless (file-directory-p present-working-directory) (error "that is not a path to a directory")) (add-to-list 'dirs present-working-directory)) 

EDIT: Found out that the reason this wasnt working is because emacs stores variables(the way I was executing this code was by using eval-buffer), and I had stored some junk value from before writing this code out.

submitted by /u/SergioWrites
[link] [comments]
[syndicated profile] emacs_reddit_feed

Posted by /u/True-Sun-3184

As you can see, with eldoc-mode turned on, my line height seems to change for the line my cursor is on as soon as the eldoc text appears in the mini buffer. Turning eldoc-mode off makes this stop. Any potential leads?

submitted by /u/True-Sun-3184
[link] [comments]

Profile

mustashriq: (Default)
mustashriq

March 2013

S M T W T F S
     12
345 6 789
10111213141516
1718192021 2223
24252627282930
31      

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 16th, 2025 12:36 pm
Powered by Dreamwidth Studios