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
1answer
28 views

xterm-mouse-mode does not work for me unless it is invoked manually

I've been unable to get xterm-mouse-mode to turn on and work unless I invoke it manually after emacs has started. I've tried delaying the invocation with several different hooks, most importantly tty-...
0
votes
0answers
21 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 ...
0
votes
1answer
24 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 ...
0
votes
0answers
14 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.)...
0
votes
2answers
33 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. ...
0
votes
1answer
22 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 --...
1
vote
0answers
65 views

Consistently change the background color of the echo area

I want the echo area to have a black foreground (for the characters) and blue background. The echo area is the very lowest line in the standard emacs interface, below the mode-line. If there was just ...
0
votes
2answers
114 views

What is emacs : daemon, emacsclient, tcp-server?

I want to know about why they are used? , what are they? what is daemon in emacs, Why Should/shouldnot i use "emacs" instead of "emacsclient --create-frame" ? what is client and ...
0
votes
0answers
25 views

Iterm2 use Control + Option keys for C-M- key sequences

I usually use iTerm2 as a terminal emulator because of its tmux integration, which is extremely handy, but I haven't been able to find a way to get the Control + Option keys to work as a C-M- key in ...
7
votes
1answer
454 views

`M-[` causes emacs to print weird (possibly escape) sequences

I am using emacs from a remote ssh session. So I ssh remote in a terminal and launch it from there with emacs. When I set the following key binding (global-set-key (kbd "M-[") 'backward-...
4
votes
1answer
374 views

Is there an Emacs package for terminal emulation?

Would it be possible to download a GUI version of Emacs which includes its own terminal emulator for any terminal-related commands like executing shell scripts? I.e., it would not use the local system'...
1
vote
1answer
101 views

Changing Terminal Emacs Theme

I have to run some C and Fortran programs over SSH, and need to edit the source files on the shell. I think Emacs is the right tool for such a task, and it was preinstalled on the server. Though when ...
1
vote
0answers
61 views

emacs unable to create frame in tty mode on linux `No applicable method: frame-creation-function`

Recently I'm unable to open emacsclient in tty mode, it always fails with the below error (environment redacted, and added newlines) *ERROR*: No applicable method: frame-creation-function, ( (menu-bar-...
3
votes
1answer
126 views

Zero width space shows as underscore

Typing a zero-width space in TERMINAL emacs shows an underscore-ish character. How to make it showing nothing?
0
votes
1answer
45 views

quote copy/paste keys bindings

how can I copy a quote and paste it onto an emacs file? the shortcuts please?. I have tried to type the text but it is too long to write by hand.
0
votes
0answers
85 views

Scan error: "Unbalanced parentheses" in fresh emacs installations, without config files

When I start emacs and run M-x up-list in the initial buffer (the about Emacs buffer, in fundamental mode) I get Scan error: "Unbalanced parentheses". If I move the mark to the end of the ...
1
vote
1answer
80 views

mwheel-scroll bindings between GUI and terminal?

Using an Emacs daemon (28, pgtk branch) switching between GUI and terminal, I can't get mouse scrolling to work on both. They work on each individually, but the issue is with the mouse-wheel-{up,down}-...
0
votes
0answers
13 views

How can I display inline org images using external programs for the TUI?

I like to display the inline images either using programs that produce colored text (like https://github.com/hpjansson/chafa), or use ANSI escape codes like https://sw.kovidgoyal.net/kitty/graphics-...
0
votes
0answers
55 views

Xmodmap modifier used for meta

I would like to set my Alt_L to trigger a meta key in emacs. I've tried using xmodmap to set Alt_L as Mod1, Mod2, Mod3. But in emacs, when i try to type Alt_L + x (expecting M-x) it only prints "...
0
votes
0answers
35 views

EmacsLisp comments invisible after switching to Solarized theme

On Arch Linux, running Emacs within Alacritty, comments in .el files are invisible since switching to the Solarized-Light theme. Tinkering with some of the color settings in my alacritty.yml hasn't ...
1
vote
0answers
42 views

Orgmode: Show some extra vertical space between level 1 and previous line

I want emacs to show put some vertical margin between my level 1 headers, so that they are more readable. Currently, they are really hard to read: Compare with (I have manually added newlines between ...
0
votes
1answer
81 views

How to open `crontab -e` in emacs terminal editor?

I am trying to open crontab -e in emacs terminal editor, but it keeps opening it as GUI. After running crontab -e emacs windows pops up rather than opening it as terminal editor. $ crontab -e no ...
0
votes
1answer
29 views

Emacs cursor border hides the character

Cursor does not show the bottom section such as _ or bottom part of character g. This is the case in emacs -q -nw file.py and also the case in my init.el file. I am not sure how can I fix this issue. ...
0
votes
0answers
83 views

How do I type … in the TUI?

When I call describe-key and enter … (Alt Gr + .), it says M-b runs the command backward-word […] and async-shell-command (bound to M-&) is called. I'm on Linux with Xorg, the terminal emulator is ...
0
votes
0answers
20 views

Making a context selection drop down menu in emacs

What I want to do with emacs is add a context key shortcut like F or i to select a menu in emacs. Example picture is Midnight Commander and how it does it for what I want to do with emacs.
1
vote
1answer
159 views

How to set env values for eshell in emacs on macOS?

If use iTerm on macOS, we can set env values in its terminal. It also set path such as /usr/local/bin/ in ~/.bashrc. But in emacs' terminal as eshell, run kubectl shown kubectl: No such file or ...
0
votes
0answers
9 views

dired and some keyboard shortcuts don't work on Emacs on MacTerm's vt220 emulator

I use MacTerm 4.0 on OS X 10.7.5 and I use the vt220 option base emulator. When I open emacs -nw on it, when I press C-x C-c (to quit Emacs) it says C-x C-g is undefined When I type C-x C-s (to save ...
0
votes
0answers
32 views

mac osx emacs terminal `C-M e` not works but `C-M a` works

in mac osx 's terminal.app, open emacs. key binding C-M a works, will call c-beginning-defun but, C-M e does not work: nothing is displayed, and C-h k for this key also shows nothing.
1
vote
1answer
133 views

How do I remove all the trailing dashes in the mode line of terminal Emacs?

In terminal Emacs: Look at the mode line. Notice that there are lots of dashes (hyphen-minuses, to be precise) (-----) at the end of the mode line (after "(Lisp Interaction)"). How do I ...
0
votes
2answers
407 views

How do I change the color of the menu bar in terminal Emacs?

I am using Emacs in a terminal. This is what the menu bar looks like: The menu bar has a white foreground and a black background. I want a green background with a pink foreground instead. Is there a ...
0
votes
1answer
52 views

Emacs' C-tab seems without effect on my server through ssh

(Emacs 27.1) On my local machine <C-tab> is linked to other-window and works well: .emacs.d/init.el: (global-set-key (kbd "<C-tab>") 'other-window) When I install Emacs on a (...
0
votes
1answer
271 views

Is it possible to run one emacs but from two terminals?

I was thinking about how I work normally on services. Where I might write code in an editor via Emacs in a terminal view, and in another terminal run the code, and yet still in another view tail the ...
0
votes
1answer
194 views

compilation sentinel: symbol's value as variable is void for quote, >, <, =, etc

I'm working on a script that can compile multiple directories and then provide the first error to a file. Currently, I am tackling the issue of running make in multiple directories portion. I am ...
0
votes
1answer
68 views

"not in compilation buffer" error using compilation-next-error in elisp function

I am getting an elisp error that fails at lisp/progmodes/compile.el within compilation-next-error function that reads "Not in a compilation buffer". The elisp function I am writing attempts ...
0
votes
1answer
333 views

How could I assign keybinding for "<M-tab>"

I would like to use Meta + Tab or Meta + ; keybindings in emacs to correct a spelling instead of using the ispells default one. Please note that I am open emacs in terminal. I have tried following ...
0
votes
1answer
183 views

emacs -nw standard input is not a tty on ConEmu and Mintty

On my Windows XP machine I use Emacs-25.2.1. During web app development I use ConEmu version 191012 and I need to use Emacs at the command line. When I enter emacs -nw on ConEmu, it says emacs: ...
0
votes
2answers
174 views

Wrong number of arguments: (0 . 0), 1 error on suspend-emacs and run command in shell

I am trying to suspend-frame and run command: clear in the shell in order to hide warning message: [3] + 31360 suspended (signal) TERM=xterm-256color emacsclient -t -q ~/.emacs I have add this ...
0
votes
0answers
602 views

Cannot enable org-roam mode - No EmacSQL SQLite binary available (windows 10)

Cannot make org-roam work under windows 10 because I get "No EmacSQL SQLite binary available". What I've done: Installed org-roam using M-x install-package. Installed emacsql-sqlite3 using M-x ...
2
votes
1answer
120 views

emacs-nox framebuffer access

First of all, I am not familiar with how emacs-nox is implemented internally. Suppose we can access framebuffer directly (/dev/fb...) Is it possible to access the framebuffer directly using emacs? For ...
1
vote
2answers
938 views

Use the terminal background color for the emacs -nw

I am looking for a way to force "emacs -nw" to use the same background color that the terminal uses. (just like vim does). By default, every emacs theme has its own default background color. ...
0
votes
0answers
25 views

Meta+Shift-Return in iTerm2 on Mac not working [duplicate]

Have you met the case that Emacs in iterm2 on Mac does not recognize M-S-RET (Meta(Option)+Shift+ Return key)? I guess it's related to the modifier key conversions in terminals. M-S-RET is used in ...
2
votes
1answer
171 views

Using multiple tty emacsclient with "C-x 5" other frame commands

I'm using emacs in daemon mode on a server and connecting over ssh in a terminal console (tty) window (i.e. no GUI support). I'm invoking emacsclient using in the tty window (window here refers to OS ...
2
votes
1answer
449 views

Change line number format with line-number-mode

With linum-mode, you could change how the line numbers appears by customizing linum-format. line-number-mode appears to have replaced linum-mode, and indeed it is better (for one thing, it correctly ...
1
vote
0answers
30 views

echo the sql-command after sql-send-region

Currently I can select a region and call sql-send-region, it can be executed well. But if the command needs a long time to run, I am not sure if the command was send or not until the command is ...
0
votes
1answer
128 views

How to make emacs show correct hex color on background?

The way I run emacs: TERM=xterm-256color emacs -nw <my_file> I am trying to have background on dracula-theme (https://github.com/dracula/dracula-theme). I have added following line into ....
0
votes
0answers
27 views

How to make e2ansi-cat work with emacs 26

I'm trying to to cat the file named foo using e2ansi-cat: AdministorsMBP2:~ administrator$ e2ansi-cat --color-class=color --background-mode=light foo Cannot open load file: No such file or directory, ...
1
vote
1answer
40 views

Emacs terminal - the location before the command prompt

My emacs terminal is currently displaying ;0user@Ubuntu: ~user@Ubuntu:~$". This happened after my friend was using my laptop, and is persisting after uninstalling and reinstalling emacs, as well as ...
0
votes
0answers
289 views

Why is Spacemacs in ssh so different from local terminal and how to make it the same?

My Spacemacs share the same configuration on local macOS and remote Linux, but they look quite different. The only OS related settings that I found in my configuration is that I enabled OSX layer on ...
1
vote
0answers
179 views

Is it possible to use AUCTeX preview-latex in emacs terminal?

I was wondering if it is possible to have latex preview working in emacs terminal. This is somehow related to this question. But 3 years have passed and I'm wondering if anything has changed? For ...
0
votes
1answer
129 views

Emacs keybindings / invocation for Apple iMac keyboard, similar to LMI or Knight?

Does anyone have a HOWTO on creating efficient keybindings and invocation of Emacs for the iMac Bluetooth keyboard pictured here? Specifically one or more of the following use cases: Invocation of ...

1
2 3 4 5