Emacs

2516 readers
1 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS
26
 
 

put up a new post on the blog. i talk about what changes I've made to the blog and the perennial dilemma on whether to stick to Sourcehut builds with their content restrictions. I've also added comments from Bluesky and changed the typeface.

#Emacs #Blog #Blogging

27
 
 

put up a new post on the blog. i talk about what changes I've made to the blog and the perennial dilemma on whether to stick to Sourcehut builds with their content restrictions. I've also added comments from Bluesky and changed the typeface. @emacs @opensource@lemmy.ml @OpenSource@mastodon.social

#Emacs #Blog #Blogging

https://peregrinator.site/blog/2025/02/the-sourcehut-builds-dilemma/

28
 
 

cross-posted from: https://lemmy.ca/post/38996724

Hello,

the most powerful thing in elisp is program as data but what does it mean how can I run data as a program. I was confused too but here is what I found.

First I tried this:

(setq x '(+ 1 3))
(x)

basically setting the value of x as a list. now x is set to some code but when I try to run x as function using (x) syntax we get this error *** Eval error *** Symbol’s function definition is void: x. It tried to look for function in x but couldn't find it. then how can I run the code that I stored in a variable? how to evaluate it? we need a built-in function eval.

If we run this code it works and outputs 4:

(setq x '(+ 1 3))
(eval x)

so yeah, it is how you can evaluate a code stored in a variable. feel free to correct me if there is another way to achieve it :)

29
30
31
 
 

As part of my "denazify my life" program, I decided to rekindle my old love for emacs and get off the MS IDEs once and for all. I thought I'd be adventurous and check out DoomEmacs, which led me down a rabbit hole of compiling emacs from source for the first time. After a long evening of shaving yaks though, GLORY IS MINE! I have built the latest emacs, layed on the latest doomemacs, and gotten them to load and... you know... do stuff!

Now I can finally get back to the project I originally set off on, updating my way out of date website! Tomorrow....!

Bibliography:

With much appreciation to

32
 
 

Updates - Formatting, one more small information.

I have been hunting documentation and trying things in my .emacs file for 2 days now..

The type of message that appears at the bottom of the screen, one example is "Save the file ? (y,n,! ...." On my system it is dark blue on black. Also "Modified buffers exist..." dark blue on black - hard to read. What face is that?

Here is what I have tried so far:

(custom-set-faces
  '(mode-line ((t (:foreground "white" :background "blue" :weight bold))))
  '(warning ((t (:foreground "yellow" :weight bold))))
  '(error ((t (:foreground "yellow" :weight bold))))
  '(success ((t (:foreground "yellow" :weight bold))))
  '(default ((t (:foreground "white" :background "black"))))
  '(minibuffer-prompt ((t (:foreground "yellow" :weight bold))))
  '(shadow ((t (:foreground "yellow"))))
  '(completions-common-part ((t (:foreground "yellow"))))
  '(completions-first-difference ((t (:foreground "yellow" :weight bold))))
  '(default ((t (:foreground "white" :background "black"))))
 )

describe-face for another prompt with the same coloring says it is the default face. So I tried changing that from the M-x prompt but that turned my screen white on yellow.

The mode-line line works - my active mode line is white on blue.

Does it matter that I am running emacs in a tty instead of the GUI version?

33
 
 

cross post from reddit, OP: @pizzatorque@mastodon.social

Personally mine was just getting around buffers; creating new ones, splitting windows, deleting the ones I don’t need and so on. In the beginning I used to have just a single file open at a time like nano

34
36
submitted 3 months ago* (last edited 3 months ago) by Atemu@darmstadt.social to c/emacs@lemmy.ml
 
 

#Emacs is now available in #fdroid

And, surprisingly, it just ..works?

You can scroll buffers by touch scrolling and tapping a text buffer opens the keyboard.

The menu bar is finally useful because it pops out as a native menu.

This is trippy, this could almost be usable..

I'll have to get my config into this; I don't doubt it'd just work.

@emacs

35
36
6
submitted 4 months ago* (last edited 3 months ago) by MITM0@lemmy.world to c/emacs@lemmy.ml
 
 

Okay, so this is probably a stupid question, I use Pop!_OS & the current emacs version is Emacs-27 So, If I had to install the latest one (Emacs-29.1 or even Emacs-30.0.93) what does one have to do, compile it manually ?

Or is there another way ?

37
15
submitted 4 months ago* (last edited 4 months ago) by MITM0@lemmy.world to c/emacs@lemmy.ml
 
 

I am new to emacs (I made a commitment to getting used to linux) & currently intimidated Can you help me out here?

Has anyone here configured Emacs for:

  • Shell-scripting
  • Markdown
  • HTML+CSS
  • Rust

Don't know where to start (I do know the bare-min basics on using Emacs as a text-editor)

38
39
40
41
42
27
A corny Emacs? (lemmy.zip)
submitted 5 months ago* (last edited 5 months ago) by sith@lemmy.zip to c/emacs@lemmy.ml
 
 

I just got myself a Corne 3x6 keyboard. This probably means that I will drop evil-mode and instead solve ergonomics through home row mods. I will also try out Colemak. But one step at a time.

I'm curious if any of my fellow Lemmies also use Emacs with Corne and if you would like to share your key maps? Or hard learned lessons?

43
44
6
submitted 5 months ago* (last edited 5 months ago) by sith@lemmy.zip to c/emacs@lemmy.ml
 
 

Howdy!

I'm experiencing an issue with eglot and xref-find-definition in ada-mode. Maybe someone can help.

So this is the situation: sometimes when I use xref-find-definition lsp does not work, and xref asks for a TAGS file. However, at the same time I get a popup from eglot (I think), showing the definition. It appears the connection between eglot and xref is unstable. I want xref-find-definition to work all the time (don't care about the popup really).

I'm using the following hook for eglot:

(add-hook 'prog-mode-hook #'eglot-ensure)

Any suggestions on what triggers this behavior or how I should debug this (I'm kind of an Emacs noob)?

Oh, and I'm using Emacs 29.3.

45
46
47
 
 

Hi! I'd like to share a package of mine that was recently made available on MELPA.

Disproject is a package for GNU Emacs that provides integration with project.el and allows for dispatching various project-related commands via Transient menus.

It is similar to (and inspired by) the function project-switch-project, but also attempts to improve on its feature set in addition to the use of Transient. Projectile users may also find similarities to projectile-commander.

Some notable features include (but may not be limited to):

  • Auto-detecting the current project when starting the menu.
  • Switching between active projects (i.e. only those with open buffers).
  • Defining custom per-project suffixes like compilation commands to show in the menu (see disproject-custom-suffixes).
  • An option to prefer displaying buffers to another window when executing commands.
  • When available, integration with: envrc; magit; magit-todos; mise.el.
  • A set of customizable variables to substitute some commands in the menu (see Customization).
48
 
 

I've been using gptel for a couple of days and it is absolutely bonkers. It is Magit-level of thought out. However I enjoyed relying less on the transient menu, and rather focus on writing my own wrapper functions via gptel-request.

Honestly I've been kind of an AI skeptic until very recently, and gptel in addition to this article were what pushed me over.

49
 
 

Hello.

I have been using both Neovim and Emacs on and off for about 2 years now, only really getting into both projects around 8 months ago.

After Emacs broke on NixOS (not sure whose fault it was), I didn't want to see Emacs for a while, so I used Neovim and sort of forgot about Emacs, but now that flatpaks broke for me on Fedora a few days ago, and I decided to switch to PopOS where Neovim is a version or two older than the minimum for some plugins. I tried to make it work and failed so I'm back on Emacs.

I even managed to find a fix for an issue I had with the Dashboard Logo.

But I've grown used to the way Neovim does things with Mason, just compiling all language servers automagically.

In short, I couldn't find a way to do that in Emacs and seeing as AI couldn't help me in these endeavours, I decided the best place to ask for help would be here.

I need a way to easily install Language Servers, integrate them with LSP and Auto-Complete mode, and have Emacs or an Emacs package compile and/or install these language servers automatically with no further effort required on my part.

Thank you.

50
view more: ‹ prev next ›