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
1 answer
18 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
38 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
46 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
54 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,568
0 votes
0 answers
70 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
  • 143
0 votes
1 answer
90 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
30 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
49 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
0 votes
1 answer
131 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
27 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
17 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
  • 283
1 vote
1 answer
163 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
  • 291
0 votes
1 answer
35 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
127 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
  • 4,272
1 vote
1 answer
81 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
43 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
74 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
77 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
38 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
  • 754
0 votes
2 answers
31 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,179
0 votes
1 answer
138 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,347
0 votes
2 answers
198 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
39 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
  • 637
4 votes
1 answer
435 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
  • 565
0 votes
1 answer
72 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
470 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
0 answers
33 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
  • 324
1 vote
5 answers
977 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
127 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
414 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
86 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
0 votes
1 answer
173 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
122 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
  • 283
0 votes
2 answers
190 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
190 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
110 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
102 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
94 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
372 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
94 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
  • 205
0 votes
2 answers
30 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 ...
Nick's user avatar
  • 125
0 votes
0 answers
76 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 vote
1 answer
80 views

WARNING: the following functions are not known to be defined: x-display-pixel-width, x-display-pixel-height, x-show-tip. emacs-nox

I'm using Emacs in terminal mode. I am not getting any error, what I am getting is just a warning, the following functions are not known to be defined: x-display-pixel-width, x-display-pixel-height, x-...
baezacaljo's user avatar
0 votes
0 answers
147 views

Can emacs use window system on terminal frame? (doom-emacs, iTerm)

I'm trying to set org-level-* height(font size) differently for each level(doom emacs, config.el): (after! org (set-face-attribute 'org-level-1 nil :height 1.75)) But it displays different ...
Pete's user avatar
  • 101
0 votes
1 answer
175 views

Key binding in terminal emacs [duplicate]

I started to use Linux Mint. On the Terminal, I can use emacs -nw and emacs. I can't get the same key behavior about the following two configs. In particular, these settings work in emacs, but not in ...
hrkshr's user avatar
  • 133
0 votes
0 answers
99 views

What is causing slowness when pasting text to terminal emacs (emacs -nw)?

For work, I run terminal emacs inside tmux on a remote server, which I access via PuTTY on a Windows machine. (So far, I haven't found a better way to pickup where I left off when editing remote code.)...
nhaas's user avatar
  • 1
2 votes
2 answers
83 views

Any way to disable tab usage in display algorithm?

When emacs displays buffer text to the terminal, along with whatever ANSI (or other termcap/terminfo) sequences it uses, it will occasionally use ordinary ASCII TAB characters to move the cursor. ...
Steve Summit's user avatar
0 votes
1 answer
91 views

How to bind a terminal command to a key for python code autoformatting using autopep8

I'd like to autoformat my python code from the buffer that contains it with a key. I was looking at this tutorial. One can autoformat the code from the terminal with the command: autopep8 --in-place --...
Schach21's user avatar

1
2 3 4 5 6