2022 Developer Survey is open! Take survey.

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
8 views

how to remove the parentheses on emacs mode line

i have a config for minimalist mode line, its the next (setq mode-line-percent-position nil) (setq mode-line-modes (mapcar (lambda (elem) (pcase elem (`(:propertize (,_ ...
user avatar
1 vote
1 answer
26 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 ...
user avatar
-2 votes
0 answers
32 views

How can I make dircolors configuration work in emacs shell?

In emacs shell (opened by M-x shell), I have problem with the coloring of the files listed by ls. I want to change the coloring to dircolors.ansi-dark, so I added TERM dumb to the file dircolors.ansi-...
user avatar
  • 89.8k
0 votes
0 answers
24 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 ...
user avatar
  • 11
0 votes
2 answers
39 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 ...
user avatar
  • 862
0 votes
0 answers
12 views

Must emacs ediff navigation always switch focus to a compared buffers?

I am a long time emacs user but have never used Ediff before. I generally like emacs, and I'm a mouse-averse "keep the fingers on the keyboard" kind of user. I find the navigation of Ediff ...
user avatar
0 votes
2 answers
71 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 ...
user avatar
0 votes
0 answers
10 views

Emacs inheritance of font-lock-comment-delimiter-face

I am getting confused about how to change the weight to bold for commented sections. Have been changing the font weight for both font-lock-comment-delimiter-face and font-lock-comment-delimiter-face. ...
user avatar
  • 13
0 votes
0 answers
47 views

Normal Weight for strike-through in emacs-org

I have the following face for strike-through in emacs-org. I am using bold in my init file. But for strike-through I would like to use normal weight. Have tried introducing weight 'normal but cannot ...
user avatar
  • 13
0 votes
0 answers
15 views

Changing face colour for Emacs Org-Mode emphasis syntax

I am using org-mode and use the emphasis syntax. Since I already use the bold type interface, how can I set a colour face to change the foreground colour to some specific hex code for the emphasis ...
user avatar
  • 13
0 votes
1 answer
27 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-...
user avatar
0 votes
0 answers
61 views

How can I repair ctrl + space on cygwin's emacs?

I have cygwin installed on a windows 10 virtual PC running on qemu on my debian 11 desktop PC. I have emacs installed on cygwin. If I run cygwin and emacs through the windows command prompt or through ...
user avatar
0 votes
0 answers
73 views

Emacs 27.1 freshly compiled on RHEL8 starts up, but gives "failed to open swrast" error

I just have compiled GNU Emacs on RHEL8 (version message "GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2021-09-07". When I start it up (as X11 app without any ....
user avatar
  • 315
0 votes
0 answers
83 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 ...
user avatar
0 votes
0 answers
29 views

Installing an earlier version of Emacs (on Mint)

I need to use Emacs 25.2.2 (GTK 3.22.21, 2017-09-22) because it's the last version of Emacs that supported psgml-mode. I have it running under Mint 19 on one laptop, as it was the default at the time, ...
user avatar
0 votes
1 answer
100 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 ...
user avatar
  • 1
5 votes
1 answer
2k 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 ...
user avatar
  • 173
0 votes
1 answer
27 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
user avatar
0 votes
1 answer
46 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: ...
user avatar
  • 141
0 votes
1 answer
863 views

Update emacs with the last 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 ...
user avatar
1 vote
2 answers
48 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 ...
user avatar
  • 11
1 vote
1 answer
36 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, ...
user avatar
2 votes
0 answers
73 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 ...
user avatar
0 votes
0 answers
84 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 ...
user avatar
4 votes
1 answer
1k 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 ...
user avatar
  • 198
1 vote
0 answers
121 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 ...
user avatar
  • 3,248
1 vote
0 answers
57 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), ...
user avatar
-1 votes
1 answer
41 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.
user avatar
0 votes
0 answers
253 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 ...
user avatar
0 votes
1 answer
94 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 ...
user avatar
  • 101
0 votes
1 answer
20 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 (...
user avatar
1 vote
0 answers
33 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/...
user avatar
0 votes
2 answers
127 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 ...
user avatar
  • 743
1 vote
0 answers
642 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 ...
user avatar
  • 11
0 votes
1 answer
418 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 ...
user avatar
  • 450
4 votes
0 answers
289 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 ...
user avatar
  • 193
1 vote
2 answers
79 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-...
user avatar
1 vote
2 answers
553 views

Emacs with 24bit terminal support on FreeBSD

I'm trying to enable 24bit support on the terminal (via SSH) on my FreeBSD 12 installation without success. I tried to create a terminfo file with the contents: xterm-24bit|xterm with 24-bit direct ...
user avatar
1 vote
1 answer
751 views

Error Installing Emacs25 Package on Ubuntu 16.04

I am trying to install Emacs25 package on Ubuntu 16.04 alongside Emacs 24 and Emacs-snapshot (currently Emacs 27.0.50). I ran the following commands sudo add-apt-repository ppa:kelleyk/emacs sudo ...
user avatar
2 votes
1 answer
45 views

How can I bind multiple keys to a macro?

I want to be able to insert: #+BEGIN_SRC emacs-lisp #+END_SRC By typing <sTab.
user avatar
1 vote
1 answer
310 views

How to have Emacs daemon persist on remote

My current work workflow includes using PuTTY to SSH into a Linux development box with many users. I use an Emacs daemon to avoid the long startup times when closing my Emacs sessions. However, the ...
user avatar
0 votes
1 answer
16 views

Where does audio output go in Emacs shell?

I open a shell in Emacs via M-x shell. Then, the line echo -ne '\007' produces no output. However, when I run it in terminal via M-x term, it produces a sound. Is there a way to get shell to have the ...
user avatar
2 votes
1 answer
262 views

Changing default browser for emacs, Debian insists on using Firefox

In the emacs' .emacs: '(browse-url-browser-function (quote browse-url-default-browser)) I have restarted the system after setting Opera as default browser. When I run: update-alternatives --config ...
user avatar
0 votes
1 answer
52 views

Ubuntu Emacs 'Invalid read syntax: )' error

I'm trying to rebind the backspace key to actually do backwards delete instead of C-h ? in emacs on ubuntu. In my .emacs.el init file i have (global-set-key [(control ?h)] 'delete-backward-char') ...
user avatar
  • 3
3 votes
1 answer
3k views

CentOS7 emacs installation error: No X toolkit could be found

When running: sudo ./configure I got error: checking for libXaw... configure: error: No X toolkit could be found. If you are sure you want Emacs compiled without an X toolkit, pass --with-x-...
user avatar
  • 31
1 vote
1 answer
94 views

sudo emacs doesn't read my elpa packages

Here is my problem on a server running CentOS 7 with emacs 24.3.1.: When I run sudo emacs <protected_file> on a file that I don't have write permissions, emacs doesn't read my .emacs file, nor ...
user avatar
  • 305
12 votes
3 answers
4k views

How to set and determine the command-line editing mode of Bash?

How to set the vi or emacs command line editing mode the Bash AND how to determine which mode is currently set?
user avatar
  • 217
0 votes
1 answer
107 views

EDITOR: subsidiary program 'emacs -nw' not found [duplicate]

I have set up $ echo $EDITOR emacs -nw I was wondering why it is not found here, and how I can solve the problem? Thanks. $ sdiff -o sdiff.out f1 f2 1 2 3 | 2 3 4 %...
user avatar
  • 89.8k
1 vote
1 answer
83 views

Script for converting .org to .xml

I want to convert tree written in .org file to some XML code to generate graphic tree from it later (for example loading it to www.draw.io webpage). In order to do this I need a bash script which ...
user avatar
1 vote
0 answers
57 views

emacs: Font lock mode chooses light colors

It strains my eyes when emacs chooses to use light colors on light background. Can I tell emacs not to use yellow on a light background?
user avatar
  • 29.7k

1
2 3 4 5
12