Questions tagged [terminal-emacs]

Emacs can run entirely inside of a TTY terminal, by using the `-nw` flag at startup, or by compiling emacs with the `--without-x` flag.

Filter by
Sorted by
Tagged with
1 vote
0 answers
23 views

In terminal Emacs, is it possible to increase the spacing between Menu Bar items?

To me, the way the menu bar is displayed in the terminal (with only a single space between items) makes it look like a run-on sentence. Is it possible to make the menu bar display with e.g. 3 spaces ...
xyz's user avatar
  • 111
0 votes
1 answer
59 views

How do I start non-GUI Emacs on the commandline?

How do I start non-GUI Emacs on the commandline? emacs-no-x11 doesn't seem to be in recent Emacs versions.
Geremia's user avatar
  • 151
0 votes
0 answers
50 views

Wrong colors on Xfce-terminal

I use a colour scheme called solarized. Since I updated my Debian system a couple of weeks ago, colours are all wrong when I run emacs on Xfce-terminal Unsetting the COLORTERM environment variable ...
Ernest A's user avatar
  • 481
0 votes
2 answers
44 views

How can I tweak TUI emacs to pick the last visited frame instead of last created frame after delete-frame?

When deleting current frame, Emacs always picks the last created frame to show. How can I tweak it to pick the last visited frame?
Amos's user avatar
  • 466
0 votes
0 answers
20 views

How to enter query-replace-regexp with key binding C-M-%, if emacs session is not stand-alone but in mate-terminal running Bash?

Title says it all. The problem: When you start emacs within a terminal running a shell, Meta and Ctrl key act in strange ways: In some regards they work, in others, however, not as it used to be ...
starquake's user avatar
2 votes
1 answer
154 views

Doom Emacs does not correctly render the colors on ssh terminal

What happened? This is a problem that I was never able to solve and I always try to switch on another editor when I am coding on my remote machine. However, I think that I solution should be somewhere ...
vincenzopalazzo's user avatar
0 votes
1 answer
36 views

How does emacs catch scroll events in the terminal?

The exact title. this is a somewhat related question. I'd specifically like to know how mouse scroll events are caught when invoked as emacs -nw. Mode 1049 (alternate screen buffer) and 1000 (mouse ...
user129393192's user avatar
0 votes
0 answers
68 views

Executing highlighted code snippet

I login to a computer with SSH. In my home directory, there is a file called test.sh with a bunch of BASH code in it. I start editing it with emacs -nw test.sh. It is a large file, and I want to test ...
Dante Picchioni's user avatar
1 vote
1 answer
90 views

Disable 24-bit color mode in a terminal

I have set up some custom colors for various faces in Emacs. They mostly look like this: (custom-set-faces ; ... '(font-lock-constant-face ((((type tty)) (:foreground "bright magenta"))...
asciiphil's user avatar
  • 121
1 vote
2 answers
112 views

How can I find the face of the items in the headeline in lsp-mode?

Re-edited the answer for clarity Typically I would put my cursor over the text, and call M-x describe-face, but I can't do that with the headerline. In the above screenshot, I want to change the ...
suvayu's user avatar
  • 1,628
0 votes
0 answers
152 views

Using Windows git.exe with Magit on WSL2 Hangs on commit

I currenlty run emacs-nox on WSL2. My workflow is as such: [Gentoo Linux Host] –ssh–> [WSL2 Ubuntu 22.04.2 LTS (Windows VM)] –open–> [emacs] –edit–> /mnt/c/<Path>/<Files> There is ...
Chris's user avatar
  • 153
0 votes
1 answer
106 views

How can I use additional modifiers with terminal Emacs on MacOS?

I currently have (setq ns-function-modifier 'hyper) and it works perfectly fine on my GUI Emacs on MacOS, but it becomes a problem in terminal emacs, where it doesn't recognize the key. I was ...
user129393192's user avatar
0 votes
0 answers
36 views

Best way to get man to open in emacs by default

I currently have: man () { emacs -nw --eval "(man \"$1\")"; } in my .zshrc. However, this has the problem of not working with something like read(2) or command-line arguments to ...
user129393192's user avatar
0 votes
1 answer
144 views

Emacs not opening existing file, only opens new file

I recently started coding in C (college class) and use Emacs as my primary text editor. In my class, we use the terminal to create new files and open existing ones, and I decided I wanted to be able ...
minerva_png's user avatar
1 vote
1 answer
271 views

Visual corruption in terminal-emacs

I run Emacs in my terminal, which is primarily kitty on macOS, but I'm experiencing the same (what I'm about to describe) with other terminal emulators: In my shell LANG is en_US.UTF-8 and I have ...
michaelsbradleyjr's user avatar
1 vote
3 answers
41 views

emacs -nw: how can I turn off the reverse video for directories in dired?

How can I turn off the reverse video for directories in dired? As you see emacs -Q -nw --color=never . has still too much color: The only thing I want to have with white background is my cursor. ...
Dan Jacobson's user avatar
2 votes
0 answers
32 views

Eventually, emacsclient -nw freezes?

I use emacs --daemon to launch GUI clients when using emacs. Recently I started to use emacsclient -nw to launch the TUI version of emacs within tmux. It works great. Eventually though, whether I am ...
Vinn's user avatar
  • 293
1 vote
1 answer
265 views

"-UUU:----F1" in terminal Emacs mode line

What does -UUU:----F1 exactly mean in a terminal Emacs mode-line? I have heard, that U means somethings like UTF-16, but why are there three U's? What is F1 for? Why are there -?
David's user avatar
  • 297
0 votes
1 answer
63 views

Backspace triggers C-h in emacsclient

When I run a client in a terminal with emacsclient -nw, for some reason Backspace triggers C-h. This doesn't happen with emacs -nw or with the client running in a window. In both cases, as expected, ...
vonaka's user avatar
  • 171
2 votes
2 answers
141 views

Make Emacs Line-Oriented

I heard that Vim has an ex mode which is line-oriented. That means users can use the editor by echoing commands to it, e.g., bash$ echo "123" > 123.txt # 123.txt: 123 bash$ echo "...
shynur's user avatar
  • 5,288
1 vote
1 answer
136 views

Can't change emacs console/terminal theme (emacs -nw)

I'm using base16-theme package to load my GUI theme and it works fine. However my console theme is completely random (launched with emacs -nw). It doesn't match (not even close) with the GUI theme and ...
gccallie's user avatar
0 votes
1 answer
69 views

How can I get the Msys2 CLI to recognise the emacs ctrl + h key chord?

OK, I hope this is in the right department because I think although this is a problem with using emacs it may be the console window settings causing the problem. In emacs in most console or GUI ...
Georgina Davenport's user avatar
0 votes
1 answer
116 views

C-M-... bindings in emacs -nw [duplicate]

I have an issue when I run emacs with -nw: all my C-M- bindings stop working, as C (control) doesn't register, and only the M- binding is executed. E.g: (global-set-key (kbd "C-M-.") '...
parszab's user avatar
0 votes
1 answer
145 views

Problem with key bindings in Emacs in the terminal on WSL

The key binding problem happens only when using Emacs in WSL terminal. For example: I can not add priorities on headings with shift+arrow key I can not collapse all headings with shift+tab I have a ...
Arvydas's user avatar
  • 35
1 vote
0 answers
51 views

What is Emacs <select> key?

I'm running Emacs 27.2 inside Ubuntu 16.04 in terminal mode inside a Bash version 4.3.48 shell. Normally the describe-key for the end keyboard key shows that it's <end>. However, when Emacs is ...
PRouleau's user avatar
  • 796
0 votes
2 answers
42 views

Emacs Terminal mode treats mouse clicks as keypresses

When using emacs in the terminal (with evil mode) clicking on another window causes the mode of emacs to switch to insert and it starts inserting '[]' around random words in whatever buffer is open. ...
Cade's user avatar
  • 21
0 votes
1 answer
17 views

strange squares in term mode

For some time I have been seeing strange squares on term-mode Here a example with 'top' command I am using emacs 28.2.50 with -q option. Any ideas ?
djangoliv's user avatar
  • 3,199
0 votes
1 answer
210 views

"End" key results in "<select> is undefined" after updating to 24bit color gnu-screen

In order to get Doom colours working properly in a screen session within Konsole, the KDE terminal, I upgraded to the latest screen version from the screen repo in order to get the theme colours ...
vfclists's user avatar
  • 1,403
0 votes
2 answers
285 views

continuation markers in terminal visual-line-mode

How do I get continuation indicators (a character indicator at the far right edge, normally \) in visual-line mode when I'm working in a terminal emacs. FYI, the continuation markers on visual-line-...
Michael Stenner's user avatar
0 votes
1 answer
42 views

Complex Modifier Combinations for emacs -nw

I'm giving up on these fancy modifier keys, like Hyper, as they are not usable on emacs -nw What other modifier combinations can I use? I have a programmable keyboard, the Moonlander, so I can make ...
Jason Hunter's user avatar
0 votes
0 answers
15 views

setting up a remote emacs pairing session without access to the filesystem [duplicate]

I'm just wondering if it's possible to setup an emacs pairing session over ssh where in one session, I have access to the filesystem but the other person I'm pairing with doesn't?
zcaudate's user avatar
  • 647
5 votes
1 answer
523 views

Why I can't fold (org-cycle) in non-GUI?

It seems using non-GUI is much much faster when working with very long org-files. However I can't org-cycle with TAB key. (See image below). What is happening? My best guess is: when TAB pressed ...
Garid's user avatar
  • 641
0 votes
1 answer
92 views

How to get `Command + Control + *` like key bindings translate to `C-M-*` in terminal Emacs in Kitty on macOS?

The accepted answer of this question provides a way in terminal Emacs to get command(super) key bindings worked as M-*. The solution should work for every terminal. How to get Command + Control + */...
Saddle Point's user avatar
0 votes
2 answers
687 views

How to swap `super` and `meta` in terminal Emacs on macOS?

The accepted answer of this question provides a way in terminal Emacs to get command(super) key bindings worked as M-*. The solution should work for every terminal. How to swap the command (super) and ...
Saddle Point's user avatar
0 votes
1 answer
65 views

Preventing emacsclient eval from messing up my terminal

I use emacs as info viewer from the terminal, but if the info page does not exist (or there is any other error) the terminal (regardless of Kitty or Konsole) becomes hardly usable, not properly ...
xeruf's user avatar
  • 344
1 vote
5 answers
1k views

How to swap `super` and `meta` in terminal Emacs in Kitty on macOS?

For example, when I press command + d, I want to run the default M-d command kill-word. But instead it runs S-d. How can I do that in terminal Emacs in Kitty terminal on macOS (I don't want to ...
Saddle Point's user avatar
1 vote
1 answer
179 views

Why are Emacs Eshell and macOS default terminal showing different results for the same query on a program (SDKMAN) version?

I am using Emacs (config file) on macOS Monterey (12.5). There is something that I do not understand. After being queried on a specific version of the program called sdkman sdk, eshell and macOS ...
Pedro Delfino's user avatar
3 votes
1 answer
553 views

Wrong type argument: filenamep error after switching to Emacs v28

I use emacs in -nw mode on a computer cluster, and was using Emacs v25. I asked my sys admin to install a newer version (27 or higher) because global-display-line-numbers-mode was apparently not ...
Joran Martijn's user avatar
0 votes
0 answers
110 views

Error on multi buffer rendering

I had been using emacs since 5-10 years ago and never had any single problem, I used to use Vanilla emacs with some configurations as Sebastiencs's Sidebar, now I'm using Doom emacs with treemacs. In ...
ca-hercor's user avatar
1 vote
1 answer
242 views

How to change the background color when running in the GNOME Terminal?

I have added (set-background-color "blue") to my ~/.emacs (just for test purposes). When I run Emacs in windowed mode this makes the background color blue (as expected), but when I run Emacs ...
HelloGoodbye's user avatar
0 votes
1 answer
150 views

Terminals in emacs - struggling to switch over

For the past 6 months ive used kitty terminal and set it up to do everything I need. Recently (like a month ago), I want to move all my workflows away from vim + tmux + google docs + programming etc ...
Vinn's user avatar
  • 293
0 votes
2 answers
297 views

Why does htop command does not work on *shell*?

I tend to prefer shell over term. With shell everything is text and I can use the Emacs bindings to move around. Also, I have been trying to avoid opening my nixOS terminal. I have been trying to stay ...
Pedro Delfino's user avatar
0 votes
1 answer
270 views

How to remove emacsclient and emacsclient.emacs from linux(debian)

I have installed emacs using apt. I have already tried: apt purge emacs apt purge emacs-gtk When I tried to remove emacsclient using apt. It says "E: Unable to locate package emacsclient"...
ganiseh699's user avatar
0 votes
0 answers
141 views

how can you open pdf in eww?

I have seen this post Can I configure eww to use pdf-view-mode (from pdf-tools) for PDFs instead of DocView? I just noticed that when I try to open a URL thar points to a PDF in eww, it uses DocView ...
Dick A's user avatar
  • 1
0 votes
0 answers
116 views

Disable emacs from backingup file in a specified directory

Is it possible to stop emacs from backing up file in a directory? I have a directory that I use for documenting changes I made to the computer. The files in it are small but I need to make 1 everyday ...
Dick A's user avatar
  • 1
0 votes
1 answer
111 views

Why is everything bold?

I am running emacs in the terminal inside tmux and everything is bold: This is not the case with other terminal applications, e.g. Vim. Is there any way to change this? Note: This is not terminal-...
Philipp Ludwig's user avatar
1 vote
0 answers
489 views

Windows Terminal (WSL2) and M-S, C-S in Org Mode

UPDATE: I just tested emacs -nw with the MSYS2 terminal (Windows) and with iTerm (macOS) and they all have the same problem. emacs -nw on WSL2 with the Windows Terminal has many known issues with key-...
pgpb.padilla's user avatar
3 votes
1 answer
112 views

make macOS terminal emacs keyboard usage consistent with emacs GUI — for meta+shift+up/down

I've enabled the macOS's terminal preference "Use Option as Meta key" but seem unable to have emacs behave in the terminal as it does when running the GUI. I have the following use-package ...
ldeck's user avatar
  • 225
0 votes
2 answers
43 views

Emacs ruby-mode how to prevent narrowed buffer from widening when manual save is triggered

I just discovered narrowing in Emacs, and it's great to be able to focus on a single function or block of code. However, after I narrow with C-x n n, make some changes and then save manually with C-x ...
may's user avatar
  • 125
0 votes
0 answers
101 views

How to highlight my citations in org mode export to latex

I am working in a latex document using terminal emacs 26.3 and org-mode (emacs-nox). But i am facing a tiny problem. Look when i press C-c C-x [ the mini-buffer prompts 1/1 Regex {&& Regex...}:...
baezacaljo's user avatar

1
2 3 4 5 6