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
0answers
18 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
0answers
60 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
19 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
21 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
14 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
21 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
59 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
46 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
9 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
19 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
63 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
475 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
115 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
107 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
58 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
335 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
545 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
38 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
162 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
113 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
29 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
71 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
85 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
73 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
42 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
39 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
53 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
520 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
276 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
172 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
37 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 }; ...
2
votes
0answers
119 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
29 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
26 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
254 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
464 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
5k 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
364 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
430 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
55 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
123 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,...
2
votes
1answer
542 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
104 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 ...
4
votes
1answer
2k 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
119 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
244 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
2 3 4 5
12