Emacs

2348 readers
1 users here now

Our infinitely powerful editor.

founded 5 years ago
MODERATORS
1
2
 
 

tl;dr if you have an encoding problem while running guile on emacs for android with termux, make sure the LANG env var on emacs matches the value of termux:

;; ~/.emacs.d/early-init.el
(setenv "LANG" "en_US.UTF-8")

don't where else to post this, so i'm posting it here so it doesn't gets lost

emacs >=30 comes with android support. i've been using it for a while now, but it's really only useful if you can install applications to use it with. that's why the project offers an emacs package and a termux package with the same signature so you can share the termux binaries with the emacs runtime. packages and instructions here: https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/termux/

i tried running guile on emacs with geiser a few days ago but it failed to run due to some encoding issues. it ran fine on termux

after a little googling, i compared the values of the LANG variable in both termux and emacs:

  • termux: LANG=en_US.UTF-8
  • emacs: LANG=en_US.utf8

then i just changed ˋLANGˋ on emacs to match the termux value and that solved the problem! to keep it working, i added the change to ˋ~/.emacs.d/early-init.elˋ:

(setenv "LANG" "en_US.UTF-8")
3
 
 

@[email protected] @[email protected]
Shiiit, now we're back.. I reassigned myself from java to ts backender, now I can return to emacs as my main editor, after a year of separation, it became my physiological need.
What particularly cool new things do you think have been added in the last year and a half?

4
 
 

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 @[email protected] @[email protected]

#Emacs #Blog #Blogging

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

5
 
 

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

6
 
 

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 :)

7
8
9
 
 

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

10
 
 

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?

11
 
 

cross post from reddit, OP: @[email protected]

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

12
36
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]
 
 

#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

13
14
6
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
 

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 ?

15
 
 

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)

16
17
18
19
20
26
A corny Emacs? (lemmy.zip)
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 
 

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?

21
22
6
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 
 

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.

23
24
25
 
 

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).
view more: next ›