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
1answer
32 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 ...
0
votes
0answers
33 views

tmux does not pass Ctrl-; and similar keybindings to Emacs; TTY, XTerm, and LXTerminal all do

This question is different from https://emacs.stackexchange.com/q/1020, and the beautiful answer https://emacs.stackexchange.com/a/13957, which is about xterm not "passing" certain key ...
0
votes
1answer
10 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
0
votes
1answer
22 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: ...
0
votes
0answers
27 views

Correct TERM, inputrc and profile.tmux setting for Byobu + SSH + Bash + Emacs combination

I have the following setup: From my home workstation (WSL), I am using SSH to a login node on a work network/cluster, on which I run a Byobu session. From this session I make SSH connections to the ...
0
votes
0answers
19 views

Emacs Miner mode for subscript and subscript functionality from texinfo-mode

I am working on a minor mode that will use the superscipt and subscript functionality for texinfo-mode. Have been trying to see if the following works, which calls tex-font-lock-match-suscript. (...
0
votes
1answer
94 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 ...
1
vote
2answers
32 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 ...
1
vote
1answer
25 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, ...
2
votes
0answers
33 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 ...
0
votes
0answers
35 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 ...
2
votes
1answer
418 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 ...
0
votes
0answers
23 views

Emacs immediatelly crashes after startup because of X11

Title is self explanatory, Emacs (and GIMP) crashes immediately after startup and take whole Gnome shell with them. I use Fedora 31 with Gnome. I managed to get call stack from system logs, ...
1
vote
0answers
41 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 ...
0
votes
0answers
19 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), ...
-1
votes
1answer
25 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.
0
votes
0answers
185 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 ...
0
votes
1answer
59 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 ...
0
votes
1answer
15 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 (...
1
vote
0answers
24 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/...
0
votes
2answers
83 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 ...
1
vote
0answers
548 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 ...
0
votes
1answer
204 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 ...
4
votes
0answers
179 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 ...
1
vote
2answers
64 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-...
1
vote
2answers
431 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 ...
1
vote
1answer
671 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 ...
2
votes
1answer
39 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.
1
vote
1answer
203 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 ...
0
votes
1answer
15 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 ...
2
votes
1answer
156 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 ...
0
votes
1answer
30 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') ...
2
votes
1answer
2k 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-...
1
vote
1answer
77 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 ...
11
votes
3answers
3k 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?
0
votes
1answer
93 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 %...
1
vote
1answer
75 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 ...
1
vote
0answers
50 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?
1
vote
0answers
44 views

Is there a way to launch okular, emacs, etc. in order to have fast pop up at command line

When I run emacs or okular from command line (these are two apps I use all the time) they are slow to launch. Is there a way to just have them running and ask for new frames from the command line?
1
vote
1answer
58 views

How to produce from the terminal in a single command 2 emacs windows?

I am trying to open 2 separate windows/instances of emacs from the terminal in a single command. I have tried: emacs &; emacs & (error: bash:syntax error near unexpected token ; and emacs &...
1
vote
1answer
662 views

vim running in tmux permanently freezes when I accidentally type C-x s [duplicate]

I use emacs a lot, and type C-x s to save there. When I am in vim running inside tmux on a remote machine, if I accidentally type C-x s, the vim instance completely freezes up, and the only way out is ...
1
vote
0answers
356 views

How to change meta key (leader key M-m/Alt-M) in spacemacs? (emacs, ubuntu)

Assuming question applies also to emacs 'classic'/default. Spacemacs being specific Emacs configuration. Possibly relevant fact for eventual differences between Emacs default and spacemacs. I know I ...
1
vote
1answer
202 views

Emacs silently fails to start under Cygwin

I installed emacs 26 under cygwin64, terminal version, no X. When I enter emacs to start there is a second or so delay before the bash prompt reurns, the error code is set to 0. The same thing ...
0
votes
0answers
39 views

when can I view \t as a character which spans a fixed width, instead of a control character which jumps to the next tab stop?

I always thought \t as a character, and never realize they are used by terminals for column/field alignment, until Stephane said What does `pr -e` mean? printf '%b' '\t' or printf '\t' writes a ...
2
votes
1answer
20 views

Making extern declarations out of the global declarations in C using emacs' query-replace-regexp

I have a hell lot of the following global declarations in a .c file: fi_status_t ACLINFRA_CORE_OK = { { e_FI_STAT_MODULE_ACLINFRA, e_FI_STAT_ACLINFRA_SUBMOD_CORE, e_FI_STATUS_OK }, NULL }; ...
3
votes
1answer
139 views

Can emacs running under urxvt recognize the Hyper modifier key?

Can emacs running under urxvt be made to recognize Hyper? From what I can tell, it doesn't distinguish hyper+something from just plain unmodified something. urxvt itself does recognize the modifier, ...
0
votes
1answer
30 views

Remove all lines in single file NOT matching keywords aligned in first column [closed]

I need to extract a series of lines identified by a keyword in the first column and print them in the same linear order. The file is divided into sections delimited by a line of hyphens or equal ...
1
vote
0answers
27 views

see both, text, cursors with two frames in emacs

In emacs I can open two frames (Windows). That can view the some edit buffer. I can use this so that two people can edit a file at the same time. This is useful for remote teaching. (I am teaching ...
0
votes
0answers
298 views

How to set environment variables to path so it can be read from GUI and command line from the same program?

I installed texlive and I want to add it as an environment variable to my Path so that Emacs AucTeX can read it when I start emacs from the GUI or from the command line. So far I've read that emacs ...
0
votes
1answer
527 views

What is the proper way to build emacs with pdumper in fedora?

I am trying to build the latest emacs with pdumper, but I don't know if I am doing it right. First I clone it from here https://git.savannah.gnu.org/git/emacs.git then checkout the pdumper branch. ...

1
2 3 4 5
12