Questions tagged [emacs]

A text editor, usually characterized by its extensibility. Often described as "the extensible, customizable, self-documenting, real-time display editor." There is an Emacs-specific SE site for specialized questions.

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

Emacs hangs the network when C-g or M-x keyboard-quit, what does keyboard-quit do behind the scenes?

Working with emacs on a new RH8 network accessed from a remote windows machine using VNC. Emacs is running on RH8. Starting from emacs -Q when I perform C-g or M-x keyboard-quit emacs hangs and the ...
Mikef's user avatar
  • 101
1 vote
0 answers
29 views

Distrobox: emacs: Could not open file: /dev/tty

Am currently trying to automate running emacs on a Distrobox container (the Docker container is silex/emacs:29.2-alpine, although I've also tried silex/emacs:29.2 which uses a Debian image), and am ...
shintuku's user avatar
  • 143
0 votes
0 answers
22 views

Ctrl-= in terminal mode

In Emacs, I have bound Ctrl-= to a custom function. What is strange is that when I run Emacs in a terminal, hitting Ctrl-= just enters an equal sign and does not execute this custom function. In a GUI ...
user52366's user avatar
  • 201
2 votes
1 answer
19 views

How to use `perldoc` within Emacs (shell)?

While programming using Emacs, you frequently consult manual pages. My environment is text-based Emacs via SSH. While I can open "Normal" manual pages in Emacs using the man command ((man ...
U. Windl's user avatar
  • 1,387
3 votes
1 answer
151 views

How to get Guix perfect setup to work

The official Guix documentation describes The Perfect Setup for hacking on Guix. I have followed this description and set up everything like described, but still Geiser does not work fully. I thought ...
lrustand's user avatar
-1 votes
1 answer
119 views

How does GNU Guix's resource usage compare to lightweight linux distros (Puppy, AntiX, Q4OS, Linux Lite, Mabox, and Arch) when using EXWM?

I am looking for a lightweight Linux distribution for development purposes on older hardware and considering GNU Guix (yes, I like lisp, functional programming, and reproducibility :D). My ...
Pedro Delfino's user avatar
0 votes
1 answer
85 views

Getting 'emacs-common-non-dfsg' from Debian bookworm-backports

This in reference to this question. Many thanks to user Marcus Müller for providing the silver bullet for getting Emacs 29 from Debian backports. I've done this already, and profited. However, one ...
bci_'s user avatar
  • 3
1 vote
0 answers
70 views

Ubuntu 16.04, install evince via snap, but no service via dbus

I am running 16.04 with evince GNOME Document Viewer 3.20.1 Now evince 4.X displays hyperlinks as pop-up windows, which is very useful for documents with equations. I installed evince 4.4 via snap ...
Uwe Brauer's user avatar
-1 votes
1 answer
30 views

How do i scroll backwards in the emacs help menu

Today i tried emacs for the first time, and i found that C-h C-h opens up the help menu. The menu says press SPACE or DEL to scroll the menu. If i press SPACE, it scrolls me forward which is great, ...
Shamirul Huda's user avatar
0 votes
0 answers
28 views

Hunspell does not identify an obvious correct form of a misspelled word

For the misspelled word "perapring" hunspell does not propose the correct spelling "preparing" and only proposes the following words: persevering pertaining innerspring preferring ...
Name's user avatar
  • 173
0 votes
2 answers
569 views

Can systemd start a user service after loading `.profile`?

I'm using systemd to start the Emacs daemon, as explained in the Emacs wiki. I also use my ~/.profile file to add my user-installed TeX Live installation to the PATH variable, so it contains the line ...
red_trumpet's user avatar
-4 votes
1 answer
47 views

how can i reduce the byte of the code bellow from 146 to 144 need help please [closed]

How can i reduce the byte(memory) of the code: #include<stdio.h> /** * main - Entry Point * Return: Always 0 (success) */ int main(void) { printf("Size of a char: %d byte(s)\n&...
Aroh chukwuebuka's user avatar
0 votes
1 answer
55 views

Do shells have a command equivalent of the "|" pipe symbol? I need something like that in Emacs org-mode tables

I like to construct commands which use the | pipe symbol in org tables and | symbol messes them up. Do bash et al have a text command that is the equivalent of the symbol? Are there alternative ways ...
vfclists's user avatar
  • 7,487
0 votes
1 answer
123 views

EasyPG always asks to pick a gpg key even though epa-file-encrypt-to is set

I want emacs to use one specific key for encryption files. So, when I make a *.org.gpg file and save it, easypg should automatically transparently take the key and encrypt a buffer. Instead, it asks ...
Igor Gaisin's user avatar
3 votes
2 answers
607 views

How can I edit a row in a 7GB csv file?

I have a .csv file which is 7+ GB and has 30M rows. When I load the file into a database table in SQL Server, it reports the position of a row with some format problem, probably due to some fields ...
Tim's user avatar
  • 101k
1 vote
0 answers
81 views

Emacs dired list .(dot) ..(dotdot) first

In short, how do I implement the solution in following question in emacs for use in dired? I cannot comment there, so I started this question. How can I make “ls” show dotfiles first while staying ...
Yu Zhang's user avatar
0 votes
0 answers
60 views

Terminal applications don't cover the entire terminal

I've been researching this for a couple hours so far and I can't seem to find a solution that works and isn't 10 years old so I figured I'd ask again. I'm using awesome and Alacritty, and when I use, ...
HornedAccomplice's user avatar
4 votes
1 answer
693 views

Systemd starts emacs daemon without XAUTHORITY environment variable after upgrading to Fedora 37

Problem I am running Emacs daemon as a user service using Systemd, following the documentation in EmacsWiki. I configured it while using Fedora-36, and everything was working as expected. Once I ...
Thomas's user avatar
  • 143
1 vote
0 answers
127 views

Trouble with starting emacs daemon using crontab's @reboot

I'm trying to configure my system to start emacs -daemon when I start the system. So, I've added following line to my crontab. @reboot /usr/bin/emacs -daemon And then when I start my system, It seems ...
Garid Z.'s user avatar
  • 532
0 votes
1 answer
440 views

How to change title bar color of emacs in gnome desktop environment

I'm using Gentoo with gnome-42.3. I've set the theme to Adwaita-dark. All the windows turned dark except the emacs. Is there a way to set title-bar-color for a specific application?
Necktwi's user avatar
  • 1,026
0 votes
1 answer
51 views

Open tex file corresponding to an opened pdf file

Suppose I have opened a pdf file (say /path/to/my/file.pdf generated from LaTeX) in evince and want to open the corresponding LaTeX source file (/path/to/my/file.tex) in my emacs editor, I click on ...
student's user avatar
  • 18.3k
1 vote
0 answers
70 views

How to run GNU Emacs 28 in firejail with the firefox profile?

I'd like to be able to run GNU Emacs 28 from a Firefox running in firejail, but it gives the following error: emacs: could not load dump file "/usr/libexec/emacs/28.1/x86_64-linux-gnu/emacs.pdmp&...
vinc17's user avatar
  • 12.1k
1 vote
1 answer
95 views

How to automate the process to open 3 shells and run 3 commands?

I set up something so that I'd open up 3 shells and run the programs one by one: cd foo/bar ./foo.sh cd foo/bar node bar.js cd foo/bar ruby foobar.rb However, since it is time consuming, so I wrote ...
Stefanie Gauss's user avatar
0 votes
0 answers
354 views

How to make emacs scale when changing text-scaling-factor on gnome?

When I switch screen I do gsettings set org.gnome.desktop.interface text-scaling-factor $size. All my programs are scaling correctly except for emacs (nothing change). I have to restart emacs each ...
learner's user avatar
  • 161
2 votes
2 answers
666 views

How do I open a file at specific line in a running emacs?

emacs can be run from the command line to open a file at line n with a +n command line argument like so : $ emacs +n file I'd like to do the same from a running emacs instance, either via find-file ...
ychaouche's user avatar
  • 998
2 votes
2 answers
1k views

What is emacsen-common package?

I was trying to remove emacs and all packages related and almost removed emacsen-common. The output to apt remove emacsen-common is: Reading package lists... Done Building dependency tree... Done ...
hidromixer's user avatar
0 votes
1 answer
50 views

Emacs escaping getty

I create two virtual serials by socat -d -d pty,raw,echo=0 pty,raw,echo=0 in the specific case, I got /dev/pts/9 and /dev/pts/16 I then start screen on one side, in one X terminal, specifically gnome-...
Fabio Dalla Libera's user avatar
2 votes
0 answers
495 views

authinfo syntax -- how to include a command in my authinfo file?

The online manual states the following: The format of an authinfo file is based on the .netrc file specification that is used for FTP login. In addition to the .netrc file standards, the authinfo ...
Betta George's user avatar
0 votes
1 answer
378 views

emacs ./configure encounters missing function 'tputs' when cross-compiling for arm-linux-gnueabihf

I'm trying to cross compile Emacs for an armv7l system on my main rig through an Arch virtual-box, and so far I've had no issues until the ./configure stage. I've properly set up the build, host, and ...
itz-el's user avatar
  • 1
11 votes
1 answer
5k views

How to quit the `mg` editor?

I tried to use one of my Git aliases and accidentally opened the mg editor. I tried a lof of different keys and nothing seemed to close it. I eventually just used ctrlz to to send it to the background ...
ruohola's user avatar
  • 282
0 votes
1 answer
94 views

open emacs gui through xlaunch from wsl failed

I was able to open emacs with xlaunch, but somehow it stopped working. I am not familiar with xlaunch. How do I debug this problem? Display 172.27.112.1:0 unavailable, simulating -nw
Kabocha Porter's user avatar
0 votes
1 answer
119 views

emacs path replacement

I had a old version of emacs, I removed it and install a new one. For this new install I got a gz file, and compiled in my laptop. After a successful installation I got a small situation: If I type: ...
Rafa's user avatar
  • 151
1 vote
1 answer
2k views

Update Emacs to the latest version on Linux Mint

I installed Linux Mint 20 on a new machine, and I have the default Emacs version: ➜ ~ sudo dpkg --get-selections | grep emacs emacs install emacs-bin-common ...
vincenzopalazzo's user avatar
1 vote
2 answers
250 views

Move to Midline in Terminal?

I frequently make spelling mistakes in the middle of my commands in my zsh iterm2 (on Macbook). For example, the word "origin" below git push origi my-very-long-branch-name My normal ...
uusr123's user avatar
  • 11
1 vote
1 answer
98 views

locate: regex repetition postfix operator doesn't work with --regextype emacs

I have some files whose the names are of the form krita-NN.kra where NN is a number having one to two digits. I wanted to locate them using Emacs regex. However, the repetition postfix operator (\{n, ...
Firmin Martin's user avatar
2 votes
1 answer
277 views

How can I change the line numbers column font scale in a specific buffer in emacs?

I am using (global-display-line-numbers-mode) and the code suggested in https://unix.stackexchange.com/a/593889/441805 adapts the line numbers column font scale accordingly to the buffer text font ...
formalanarchistmethods's user avatar
0 votes
0 answers
172 views

How do you read a .txt file with stdin .cc file and output it to your shell? pt.2 [duplicate]

//include file from a large library that gives us the ability to program in //C++ #include <stdio.h> #include <stdlib.h> // int main() { File * fPointer; //fpointer gives direction ...
Daniel Sinyal's user avatar
6 votes
1 answer
3k views

Vim-based alternative for Emacs tramp-mode

I'm currently using vim (actually neovim) as my IDE for writing and executing GNU R-code (using the Nvim-R-plugin, see also https://github.com/jalvesaq/Nvim-R, which serves as my REPL), which works ...
n0542344's user avatar
  • 386
2 votes
0 answers
384 views

Thin grey strip inside border when using WSL + GUI App + Vcxsrv

I've been using emacs inside WSL and vcxsrv to display the interface. One small issue I found with this approach is that there's a very thin grey area between the border and emacs's text area. Please ...
SparedWhisle's user avatar
  • 3,668
1 vote
0 answers
117 views

Make Emacs load .bashrc / .bash_profile when started by GUI

I wrote LD_LIBRARY_PATH both in .bashrc and .bash_profile. However, if I started emacs in terminal using emacs, LD_LIBRARY_PATH is shown in getenv. If I started it using GUI (installed from apt-get), ...
spacegoing's user avatar
-1 votes
1 answer
80 views

How to make undo history interoperable between emacs and vim?

Is it possible to share undo history of a file between emacs and vim? I think it can be very useful: for example if your emacs config is broken and you want to quick edit files with vim to repair it.
pietrodito's user avatar
0 votes
0 answers
349 views

Font issues with text editors on Arch Linux with i3

I've been using Arch for a while now, and had problems with fonts in the past, mainly with firefox and chrome, but I was able to manage those and they look pretty normal. I've been an avid vim user ...
Clemens Schrage's user avatar
0 votes
1 answer
347 views

VISUAL and EDITOR variables aren't defined

I'm using CentOs 6 and learning about command line editing modes. The VISUAL and EDITOR variables aren't defined in my system and printenv or env commands don't show them. My X terminal starts in ...
Yalda's user avatar
  • 101
0 votes
1 answer
44 views

ELisp function to org-todo current clocked task and keep current buffer still

Image that I have a clocked task and I want clock-out it and set the heading to done the same time.Most importantly,I don't want to change my focus on my current buffer,I tried to write a function (...
Qiu Lin's user avatar
1 vote
0 answers
48 views

fasd -e emacs not working correctly (snap installation)

fasd is working fine when I use commands such as z (equivalent to fasd_cd -d). However when I try to do something like fasd -e emacs .bashrc I get a funny error message: /snap/fasd/2/usr/local/bin/...
Inigo Val's user avatar
0 votes
2 answers
195 views

Emacs running in mintty via ssh and tmux reports <end> as <select>

Currently I need to code via ssh on a remote machine. I run this from a Cygwin mintty and use tmux to keep emacs running even when I disconnect. Everything is fine, tmux reports TERM=screen, however ...
Arne's user avatar
  • 843
1 vote
0 answers
731 views

Issue with xorg-server on arch

After a arch linux upgrade, it seems that my x-server is really unstable... Launching emacs with exwm does not work anymore. I have installed gnome and it does work (sometimes, very unstable). I ...
Arnaud's user avatar
  • 11
0 votes
1 answer
950 views

PYTHONPATH not being updated

Currently I use pyenv to have a particular python version installed. Then I use pipenv to create virtual environments for my various projects in python. Currently I have a project structure similar ...
Navarro's user avatar
  • 470
4 votes
0 answers
476 views

Emacs via X: how to use better rendered true type fonts?

I have attached a screenshot of Emacs 24.5 running in X-Quartz in a Debian VM. Does anyone know how to configure Emacs to use the better rendered Andale font? For instance, with rendering like the ...
Nick's user avatar
  • 195
1 vote
2 answers
99 views

Is there a Debian package for Emacs that contains the source (.el files) v. the compiled code (.elc)?

In my old versions of Ubuntu I would automatically get the dot-el files for emacs when I installed it. This was very useful because if I wanted a private version of a function (eg compile-without-...
Haydon Berrow's user avatar

1
2 3 4 5
12