Skip to main content

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
0 votes
0 answers
14 views

Calling a function from one emacsclient can't start Edebug from another emacsclient. Terminal is locked error

I use GNU Emacs 27.1 on Ubuntu 22.04.4, where I use i3 with several emacsclients opened in different terminals, while emacsdaemon is running in background. After setting Edebug instrumentations into ...
Mitu Gabriel's user avatar
0 votes
0 answers
39 views

Emacs Command Not Found After Installing In MobaXTerm

I'm having trouble installing emacs in MobaXTerm. When I open a new terminal I'm in the path home/mobaxterm. When typing emacs example.cpp in the terminal, I get an error emacs: command not found and ...
theheretic's user avatar
0 votes
2 answers
21 views

Emacs cursor settings not working in Debian running on WSL

I am running emacs on Debian bookworm on WSL (Windows Subsytem for Linux). I run emacs in a Window terminal. Everything works except the emacs cursor is very hard to find. If you look carefully at ...
rlandster's user avatar
  • 225
0 votes
1 answer
57 views

emacs M-x & shortcuts

I have been using emacs extensively on Linux for decades now, but could never get shortcuts to work, and never bothered with it. However now, since I get autosave data due to my recent setup, I need ...
diyer's user avatar
  • 1
0 votes
0 answers
32 views

How do I hardcode `TERM` for CLI emacs in elisp?

The TERM variable is not set correctly for my emacs. I like to override it using elisp. I am currently using: (setenv "TERM" "xterm-kitty") But this does not seem to work. PS: I'm ...
HappyFace's user avatar
  • 860
0 votes
0 answers
16 views

Automatically set parent terminal title as current buffer name

I'm running Emacs in terminal with -nw option over i3 in Ubuntu 22.04. I use emacs server to start automatically in background and create more emacs-clients from more parent gnome-shell terminals. It ...
Mitu Gabriel's user avatar
0 votes
0 answers
17 views

Error when using emacs in background process: [1] + suspended (tty output) emacs

I get this error when I try to open any file in the background using emacs: [1] + suspended (tty output) emacs file
Ben's user avatar
  • 1
0 votes
2 answers
50 views

How do I write a function to copy a region to the MacOS clipboard?

I'd like to be able to mark a region in a text buffer, hit an F-key, and have the contents of the region copied into the MacOS clipboard. From the shell you can do this by piping the text into the ...
Chap's user avatar
  • 187
1 vote
0 answers
28 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
1 vote
1 answer
173 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
  • 171
0 votes
0 answers
58 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
46 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
214 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
48 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
75 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
120 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
147 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,638
0 votes
1 answer
123 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
39 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
189 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
314 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
51 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
44 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
322 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
  • 309
0 votes
1 answer
89 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
146 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,578
1 vote
1 answer
159 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
82 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
136 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
162 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
59 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
  • 831
0 votes
2 answers
52 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,254
0 votes
1 answer
246 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,445
0 votes
2 answers
320 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
  • 667
5 votes
1 answer
546 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
  • 686
0 votes
1 answer
101 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
770 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
73 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
  • 354
1 vote
5 answers
2k 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
202 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
619 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
120 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
266 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
164 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
355 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
309 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

1
2 3 4 5 6