Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
0answers
10 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
18 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
21 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
54 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 ...
0
votes
1answer
63 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
33 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
64 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
40 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
13 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
49 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
19 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
283 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
47 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 ...
9
votes
3answers
821 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
54 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
58 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
27 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
26 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
36 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
148 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
140 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
66 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
17 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
63 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
27 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
151 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
150 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
1k 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
127 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
229 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
36 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
60 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
292 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
72 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
744 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
75 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
125 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
875 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
92 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
69 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
153 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
165 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
62 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
215 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
76 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
39 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 ...
2
votes
1answer
249 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
40 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 ...