Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
28 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
39 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 ...
8
votes
3answers
551 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
43 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
54 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
22 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
23 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
32 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
64 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
64 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
41 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
35 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
16 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
37 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
26 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
126 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
0answers
70 views

How to change emacs shell mode color theme

https://imgur.com/tcgEjHh Anyone know how to change the color theme in emacs shell mode? I'm using the latest emacs 25.3.1 and in shell mode, I find that the stdout font color always becomes red ...
0
votes
1answer
106 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. ...
0
votes
1answer
519 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
82 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 ...
0
votes
0answers
55 views

How to make double-shift/control to be a distinct modifier state?

In my attempt to make it feasible to make window-manager shortcuts compatible with emacs key binding I realize that I basically run out of modifier keys. The options that I've considered are ...
0
votes
0answers
49 views

`crontab -e` can't find Emacs server even though `emacsclient` from same shell works

In my current shell, I can run emacsclient /path/to/file to open /path/to/file in my current (GUI) Emacs server. However, with VISUAL=emacsclient, EDITOR=emacsclient, running crontab -e in the same ...
1
vote
0answers
170 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
28 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
44 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
203 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
62 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 ...
0
votes
0answers
144 views

How to make Emacs transparent with i3-wm?

As instructed here I added the following lines to my emacs configuration file: (set-frame-parameter (selected-frame) 'alpha '(85 . 50)) (add-to-list 'default-frame-alist '(alpha . (85 . 50))) But ...
1
vote
1answer
475 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
59 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
91 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 ...
1
vote
2answers
656 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/...
0
votes
1answer
70 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
0answers
29 views

Singular way to set tab width in Emacs

In Emacs, is there a way to set all languages to use tab-width 2 as a default, or do you have to use this plethora of different instructions and variables for every single language? (setq-default ...
2
votes
1answer
60 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
131 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
2answers
108 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
52 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 ...
0
votes
1answer
163 views

How to setup an OpenRC service to run at “login” level?

What I want is simple: I want that after my user login through agetty, my display manager (LightDM) or whatever login way, a specific service of OpenRC be run. Is there a way to setup that?. My ...
-1
votes
1answer
64 views

Unix shell, ctrl-F no longer working with putty when ssh into RHEL box

I swapped out a MacBookPro running OS X and Terminal.app - for a Windows 7 box using Putty. ctrl-F no longer works on my shell prompts to move the cursor forward within a command line I'm editing: I ...
1
vote
1answer
36 views

Reset emacs package manager [closed]

As a result of random manipulations, I can no longer access the melpa or gnu packages. package-refresh-contents fail to connect. (describe-variable 'package-archives) ] package-archives is a ...
1
vote
1answer
172 views

In emacs, how to force switch to a different buffer in a dedicated window?

Is there a command or shortcut to force to replace the buffer in a dedicated window with another buffer? When trying to switch to a different buffer using C-x b or M-x switch-to-buffer it says "...
1
vote
1answer
36 views

Switching between shared buffers in emacs gdb mode without mouse (in text-terminal)

From the documentation link here: https://www.gnu.org/software/emacs/manual/html_node/emacs/Other-GDB-Buffers.html When gdb-many-windows is non-nil, the locals buffer shares its window with the ...
1
vote
1answer
1k views

On RHEL 6 how can I install a pre-packaged Emacs 25?

On RHEL 6.9 (Oracle derivation) how can I install a pre-packaged Emacs version 25? In yum the standard search (incl. Spacewalk server) gives me only Emacs version 23.1.
2
votes
0answers
31 views

Non-ASCII characters stored incorrectly when sending mail in Emacs

Sent email in Emacs 24.5.1/25.2.1 is stored incorrectly in RMAIL-SENT, ie. \326 (octal for Ö in ISO-8859-1) is marked in red and skipped in a single go when pressing cursor right in Emacs. Subject: M\...
0
votes
1answer
409 views

Emacs daemon with configured packages on NixOS

The NixOS manual suggests configuring as below to launch Emacs as a daemon with some packages: services.emacs.enable = true; services.emacs.package = import /home/cassou/.emacs.d { pkgs = pkgs; }; ...
2
votes
3answers
133 views

Switch easily between browser and editor

My usual workflow is like that (for instance): My screen is split into two. My editor (Emacs or whatever) for markdown is on the left, the other on the right (web browser to view the results of ...
0
votes
3answers
348 views

How can emacs be configured to accept Shift and Alt cursor combinations properly?

I am using org-mode in emacs in the terminal and the Shift and Alt cursor combinations are entered as characters like 2A, 2B, 3A etc. I notice that vim and the terminal also display such behaviour. ...
0
votes
3answers
1k views

Command not found error - bash

$ which sudo emacs /usr/bin/sudo /home/user1/local_build/bin/emacs $ sudo emacs /etc/apache2/sites-available/000-default.conf sudo: emacs: command not found $ emacs /etc/apache2/sites-available/...