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 ...
3
votes
2answers
281 views

Emacs M-h selects paragraph + an extra line

In Emacs, when I type M-h (mark-paragraph), Emacs selects the paragraph under point plus an extra line (typically right above the paragraph). Is there a way to ask Emacs to just select the paragraph? ...
2
votes
2answers
2k views

Split tmux windows with same keys as in Emacs?

In emacs, you split a window with C-x 2 (one above the other) or C-x 3 (one next to the other). How can I get the same key bindings in tmux? Also, once a window is split, in emacs you cycle through ...
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
8
votes
3answers
2k views

Emacs text-scale-adjust causes line numbers column to incrementally shrink and disappear

I've set up emacs to display line numbers (global-linum-mode 1), and it works until I start enlarging the text via text-scale-adjust The line numbers column starts to shrink, and disappears ...
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: ...
26
votes
9answers
10k views

How to replace current word under cursor in Emacs

How do I replace current word under cursor in Emacs? I know that I can use query-replace or replace-string but every time I do so I have to type entire string to be replaced, this is just annoying. ...
1
vote
1answer
7k 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 ...
1
vote
2answers
1k 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; }; ...
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 ...
1
vote
1answer
1k views

vncserver -compatiblekbd fails with unrecognized option

I found that when I connect to my computing cluster via vnc Alt-x is not recognized correctly asM-. I tried vncserver -compatiblekbd but I get Unable to start Xvnc, exiting Actually once my ...
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 ...
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. (...
15
votes
4answers
22k views

How to install emacs using YUM without X11 libraries?

I have installed a minimal installation of CentOS 6.3 inside a VirtualBox VM. Now, I would like to install Emacs for use from the command line only. When I do a search for emacs using yum search ...
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 ...
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
2answers
1k views

emacs wont let me use a different background color

I've tried different themes in emacs (on mac with xterm set to 256) and everything works great except it's ignoring the theme's background color. Even if I add (set-background-color "red") for example ...
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 ...
7
votes
4answers
2k views

org mode to dokuwiki converter

Is there an emacs org-mode to dokuwiki converter? Is there an dokuwiki to emacs org-mode converter?
1
vote
3answers
784 views

Is there pinyin input mode in Emacs?

I'm learning Chinese and I'm wondering if there is a way to input pinyin easily. "pinyin" is a word with tone, like "qǐngwèn". Is there a emacs minor mode for pinyin? If there is not yet I'll try ...
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, ...
2
votes
2answers
849 views

Configuring Org-mode to open PDFs with evince

I'm starting to use org-mode to export text to LaTeX. My problem is that it opens the generated PDF with ebook-viewer (it is a EPUB, CHM reader) instead of using evince. Question Does anyone know ...
1
vote
2answers
431 views

The server Emacs can't recognize the ALT key when accessed by a Mac

I use Mac's ssh to get access to a server. I find the emacs on the server can not recognize the ALT key. My server is RHEL with emacs23.
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 ...
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, ...
363
votes
2answers
217k views

Ctrl-s hangs the terminal emulator?

I came across a sentence in vimdoc: Note: CTRL-S does not work on all terminals and might block further input, use CTRL-Q to get going again. and using CTRL-S indeed hangs my vim. I ...
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), ...
8
votes
4answers
6k views

Emacs command to cut OR copy to system clipboard?

As a very new Emacs user, I've been using Ctrl+w and Ctrl+y to cut/copy and paste between buffers in Emacs. Is there a way to do the same thing so that not just Emacs, but the entire system, can have ...
-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.
5
votes
1answer
495 views

Synonyms (from a thesaurus) in Emacs

I use Emacs 23 on Debian sid. I can check the spelling of a word in Emacs with M-$. How can I obtain synonyms (using a thesaurus?) for a word in Emacs? None of the following were useful: one, two, ...
7
votes
4answers
1k views

How can I run the emacs daemon only when needed?

From what I have read, one way to speed up the emacs startup is to run emacs --daemon on login and then open files using emacslient instead of emacs, which will access the running emacs server instead ...
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 ...
8
votes
1answer
4k views

How to set LANG in locale, despite it's in /etc/default/locale in ubuntu for unicode support?

I run Ubuntu 12.04, I can't set the locale to en_US.utf8. I set the LANG by configuring /etc/default/locale as described here. $cat /etc/default/locale LANG=en_US.utf8 $locale LANG= LANGUAGE= ...
4
votes
2answers
2k views

What's the difference between `/usr/share/emacs/site-lisp/` directory and `/usr/share/emacs23/site-lisp/` directory?

I use Emacs 23 on my system. I received a file from a colleague (who has a different Linux distro) to add to the /usr/share/emacs/site-lisp/ directory. As I worked to do this, I noticed another, ...
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 (...
15
votes
3answers
5k views

Italics in Emacs on a text terminal (rxvt-unicode)

I am using Emacs running in an urxvt, and I cannot get italics to work in Emacs although the terminal supports it. Here’s my current setup: I haven’t set $TERM, so it is the default rxvt-unicode-...
15
votes
2answers
3k views

Gnome stop grabbing my emacs keys

I am using Gnome in Ubuntu 11.04. I work a lot in Emacs, and I find that the Gnome window manager grabs some of the Emacs keys. To some extent, I can stop this by laboriously going through each of ...
3
votes
2answers
462 views

End of lines problem in emacs when editing markdown texts via It's All Text

I want to edit markdown source in emacs using the It's All Text plugin for firefox. In markdown you have to add two spaces to the line-end to get a new line. Suppose there is such a newline in a ...
1
vote
1answer
150 views

Map a Character key to some modifier key [say Control-key]?

I am so used to emacs keybinding that I use emacs style keybindings on my entire system (with gtk settings). I've mapped Caps-Lock key to an extra Control key. But that doesn't help me from having ...
1
vote
0answers
280 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 ...
5
votes
3answers
885 views

Can emacs render downloaded html files?

From Firefox, I downloaded a .html file, with a directory with name ended in _files, by specifying "Webpage, Complete". When open the .html in emacs, even under html-mode, only the source of the html ...
11
votes
6answers
19k views

Open terminal from emacs

Is there a fast way (keyboard shortcut) to open a terminal emulator (in my case urxvt) in the same directory as the file in the current emacs buffer?
10
votes
2answers
3k views

emacs - paste text from clipboard without formatting

I am using Emacs 24 for macOS. I'm having some problem with pasting code from clipboard to Emacs. The code that I usually select already is nicely formatted (with tab, indent, ...). However, when I ...
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
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
2 3 4 5
12