A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
2answers
30 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
245 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
46 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
54 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 ...
0
votes
0answers
25 views

How do I remap the right alt key to the <print> key

I'm using xah-fly-keys in emacs. And I would like to make use of the conveniently placed right alt key to behave as a toggle between command mode and insert mode through binding it to an unused key ...
0
votes
0answers
41 views

Emacs blink-cursor-mode broken

I was once playing with Emacs settings through SSH from Raspberry to another PC. I hit F10 and checked Options > Blink Cursor. The cursor started blinking. I unchecked it and it did not stop blinking, ...
1
vote
2answers
50 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-...
0
votes
0answers
24 views

Emacs launched from command line and standalone Emacs have different syntax highlighting when using the same theme (solarized)

I have set export TERM=xterm-256color, however when I launch Emacs in terminal vs. the standalone app the syntax highlighting has different colors. What do I need to do to make them the same?
0
votes
1answer
133 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
334 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
36 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.
0
votes
3answers
471 views

How to copy an image from one directory to another in unix?

Okay so for a research project, I am charged with working on a digital video game that happens to be formed by the use of Unix and emacs (don't know if they are the same thing because I just started ...
1
vote
1answer
109 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
79 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
25 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
1k 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
54 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 ...
10
votes
3answers
2k 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
71 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
67 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
39 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
33 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
48 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 &...
0
votes
1answer
349 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
223 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
112 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
36 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
19 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 }; ...
2
votes
0answers
106 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
28 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
23 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
211 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
326 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
vote
1answer
3k views

Open up Emacs in GUI instead of terminal

I downloaded Emacs in Linux 14.04, and when I type emacs filename.c, it opens Emacs in the terminal instead of the external Graphical User Interface. How do I force Emacs to open outside of the ...
2
votes
2answers
262 views

How do I make a working emacs alias function?

In an attempt to go around an annoying aspect of tmux, I have the following code in my .bashrc file: alias emcs="command emacs" # Fix emacs in tmux emacs () { if [ $TERM != "xterm" ] then ...
1
vote
0answers
318 views

Set focus to a window using xprop

I'm using the following to remove the windows border in my emacs when it starts up (--fullscreen is not an option as it also covers gnome shell's taskbar). xprop -f -id xid _MOTIF_WM_HINTS 32c -set ...
2
votes
0answers
49 views

Customization buffer is not killed by Exit action, why?

I opened emacs. According to Help -> About, it's using a Gtk 3 interface. (I notice the q key kills this About buffer). Options -> Customize Emacs -> Top-level Customization Groups, opens a ...
0
votes
0answers
97 views

Can't exit 'emacs -nw' with 'C-x C-c'

I was editing .gpg file and when I was done emacs couldn't exit. When I pressed C-x the emacs said "File to save in: /home/my/dir" Then when hit C-c, it said "Save file /home/my/dir/myfile.gpg? (y,...
1
vote
1answer
459 views

KSH key mapping in emacs mode: ctrl + arrow key

I'm new to KSH, have to use it at my job. Version is: sh (AT&T Research) 93u+ 2012-08-01 on RHEL. I previously used tcsh and used its bindkey facility to give me some good command-line ...
1
vote
2answers
90 views

Painful to read commented code in terminal emacs [Linux Mint]

I just started using linux mint and it's fairly good but the default terminal e-macs mode has painful to read commented code as well as strings for c++ (text enclosed in either /* */, " ", // ). My ...
1
vote
1answer
1k views

emacs: background color doesn't change when I load different themes

I'm using GUI Emacs. My background color remains the same no matter which custom theme I load. It may not matter, but when I load a different theme, I always get the message: message [sml] sml/theme ...
1
vote
1answer
103 views

How do i upgrade ASDF (for Lisp management) from 3.1.7 to 3.3.1?

I receive a Warning message from SBCL informing me that, in this session, I am using ASDF 3.3.1, but that I have ASDF 3.1.7 "registered." I previously had my Emacs (/sbcl/slime/quicklisp) environment ...
2
votes
0answers
185 views

Every time I open a terminal is located in / not in home

I recently installed Fedora -- a fresh installation. I have a problem: every time I open a new urxvt or gnome terminal it starts in the root of the system instead of my home. I checked my /etc/passwd ...
2
votes
2answers
1k views

Why is /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed not modifiable by sudo emacs?

I would like to edit /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed to change its content from 800000 to 1600000. I first try with emacs $ sudo emacs -nw /sys/devices/system/cpu/cpu0/cpufreq/...
1
vote
1answer
147 views

Is it possible to remap <Ctrl + i> to be <F8>?

As simple as it sounds I can't seem to figure out how to remap Ctrli to be F8. Reason being is that Emacs recognizes the key sequences Ctrli and Ctrlm to be Tab and Enter respectively. So for a ...
2
votes
1answer
89 views

How to make 'emacs' indent with tabs exactly how 'nano' does…?

How can I configure ~/.emacs so that I indent how nano does by default? Uses a tab character instead of 5 spaces I can add as many tabs to a line as I please
1
vote
0answers
208 views

Unable to use Thunderbird profile in an ntfs mount

Thunderbird works correctly when the profile folder is in the /home ext4 mount. I am running on Debian 10 &, Thunderbird 52.4.0 from debian (purged both thunderbird and icedove and reinstalled ...
0
votes
1answer
229 views

Best practice to try Unix/Linux software on Windows [closed]

I am currently trying to download a unix/linux software and would like some advice on which to download. I am trying to find a single point of download and management of the Unix tools (emacs, Python, ...
1
vote
1answer
79 views

Emacs installation package error

I'm trying to install emacs on my debian jessie, but I have the following package error, thinkpad-keith@debian-keith:~$ sudo apt install emacs Reading package lists... Done Building dependency tree ...