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

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
17 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
40 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
36 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 ...
0
votes
0answers
12 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
28 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
10 views

Inverse Video Text Menu Bar with Prelude Emacs?

I am trying out Emacs Prelude for the first time and so far like it. It succeeds in "modernizing" Emacs without altering it's behavior drastically for established users of Emacs and Emacs keybindings. ...
0
votes
0answers
26 views

Meta + Shift + > key in console not working

Wondering if I could get emacs M-> and M-< working in a tty console window, like it does in an X11 terminal. Currently, pressing Meta+Shift+> or Meta+Shift+< does nothing. I've been looking ...
0
votes
0answers
18 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
35 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
61 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 ...
0
votes
0answers
22 views

Org Mode Key Bindings In Terminal Not Working [duplicate]

I'm new to using Emacs in Ubuntu server terminal as opposed to GUI and noticed some of the standard org mode key binding (like M-DOWN or M-UP to move list items or subtrees up or down) don't work. Is ...
0
votes
0answers
49 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
43 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 ...
0
votes
0answers
32 views

Call mutt from within emacs

I run emacsclient on kitty terminal emulator (https://github.com/kovidgoyal/kitty) and want to add a function to open mutt (via an org-link) from within emacsclient. kitty supports multiple terminal ...
0
votes
2answers
264 views

emacs org bullets not working

I'm using emacs on ubuntu 19.04. This is my init file (use-package org :ensure t :pin org) (use-package org-bullets :ensure t :config (add-hook 'org-mode-hook (lambda () (...
1
vote
0answers
29 views

C-< and C-, keys are echoed as C-\ in no-window mode

I'm trying to edit multiple lines with multiple-cursors package. MC package has C-< keybinding but when I do C-< (Control+less-than sign) it is echoed as C-\ (Control+backslash). I don't know ...
0
votes
0answers
27 views

List commands / keywords in a directory sorted by frequency of use

I want to do some refactoring. For that purpose I want to list all keywords grouped and sorted by their frequency of appearance. That could help me get ideas, which repetitive code I could start ...
0
votes
0answers
45 views

emacs display anomaly in Jupyter notebook terminal

When I use emacs in Jupyter hub terminal to edit a file, emacs seems to always insert an extra sequence of characters: 0;276;0c before the actual content. Also, after exiting emacs, the terminal ...
0
votes
0answers
21 views

Emacsclient Not Opening Due to Dialogue

This is something that's vexed me for a quite a while, but has got a lot worse now that I'm using lsp-mode. In fact, I'm not sure if it is a bug in lsp-mode, Emacs or intended behavior: Say that you'...
0
votes
0answers
31 views

best way to access running org-mode clock from command line / python

I use py3status to output data from org-mode to the Sway status bar on my Debian laptop. I had a rather hacky script running fine on a previous version of emacs, parsing the output of something like ...
1
vote
1answer
41 views

C-/ results in backspace in the Linux console

I am using emacs on many machines, and always use C-/ for undo. However, I started working on a Raspberry Pi with Arch Linux recently, using a local text terminal - X is not installed. Here, C-/ has ...
1
vote
0answers
18 views

Unicode character display in emacs info under Chromebook secure shell

This may not be an Emacs configuration issue, but here are the symptoms: On a Chromebook, I'm using chrome's Secure Shell Extension v0.18 to ssh in to an Ubuntu 16.04 host, LANG set to en_US.UTF-8, ...
0
votes
0answers
20 views

In a terminal (not in Emacs), how can I use emacs helm/swipe to choose old shell command from bash_history?

In a terminal, we can use C-r to search a command from bash_history, but it is far less powerful than the Emacs package like helm-swoop or ivy-swipe. How can I use a shortcut in terminal (e.g., C-r) ...
1
vote
0answers
18 views

find out name of terminal device emacs was started from

When I am running Emacs from a terminal, how do I find out the tty device name from inside Emacs? I first thought that it can be done with M-x shell-command RET tty RET, but this does not work: ...
0
votes
1answer
50 views

Powerline mode-line menues in terminal mode

When inside terminal mode (emacs -nw) I can open the menu using M-F10 in terminal mode. Is there a similar possibility for the powerline mode-line menue on the bottom of the window?
0
votes
1answer
68 views

Show powerline git information in dired

Powerline shows git branch information for a buffer that are under version control vc-mode. Only when vc-mode is set for a buffer the Git branch information is displayed. When inside dired there is no ...
3
votes
2answers
556 views

Howto display unicode character \u2026 in terminal mode in emacs

Magit uses Horizontal Ellipsis unicode escape "\u2026" (which should display as "...") to mark hidden section. How can I configure the Terminal/Emacs to display them when running in terminal mode (...
1
vote
1answer
199 views

Is it possible to disable color highlighting in css-mode?

I'm using Emacs 26.1 in the terminal (emacs -nw). When using css-mode, strings representing colors seem to be automatically highlighted. I don't find this feature useful, and further, the colors ...
0
votes
0answers
19 views

some pointer declarations not colored

macs -nw fails to color code certain declarations of pointer arrays seemingly depending on the structure being pointed to. For example: SomeStruct *one[4] is all white (I have dark background), but ...
1
vote
0answers
160 views

emacs: cannot open terminfo database file

I've created a new terminfo entry to enable italics in my terminal, as described here. The new terminfo entry looks like: xterm-256color-italic|xterm with 256 colors and italic, sitm=\E[em, ritm=\E[...
0
votes
1answer
42 views

Can't use .bashrc file on remote server from ssh within emacs

Login to remote server with ssh in Emacs, general commands run well. Such as ls, docker ls, etc. C-x C-f /ssh:... But when I tried to run a command which alias to another which set in the .bashrc ...
0
votes
0answers
31 views

Mac OSX and remote Emacs sessions, keybindings

I have questions regarding keybindings and cut & paste for Emacs and OSX v10.14.3. I'm hoping there are some Emacs users with similar configurations that can provide guidance as to be productive ...
0
votes
1answer
82 views

My terminal emacs displays weird characters (\u2506) for unvisiable characters in buffers

I'm currently in a new environemnt, my emacs in terminal displays weird character in files, GUI Emacs works fine. I don't know how to express this, please see the following details: Text edition: #...
1
vote
1answer
96 views

Copy or paste between terminal emacs 26 and Mac apps

I am using terminal emacs a lot, and the method from Copy text from Emacs to OS X clipboard works for a long time. But after upgrading to Emacs 26, if I kill a string like "你好" from emacs, and paste ...
0
votes
1answer
96 views

Replace clicking a menu bar option from M-` to f10 behavior

When I click on File I want to see and not What can I change to provide this functionality? This question didn't really get the right answer.
2
votes
1answer
99 views

Use emacs syntax coloring when not in emacs

Emacs in -nw mode colors source code files, in this screenshot you see how emacs colors the .rb file I opened. Over the weeks/months I've gotten used to the coloring. Despite how hard I try, there ...
1
vote
1answer
67 views

How to convert a package to a layer in spacemacs

I am new to the world of Emacs, and like most ex-vimmers, I am starting with Spacemacs. I have been trying to find time to do some leetcode and would like to use the package leetcode-emacs. I have ...
1
vote
1answer
32 views

binding M-[ causes mouse focus to insert characters

I have bound M-[ to backward-paragraph. This causes a problem in terminal mode, whereby every time the mouse enters or leaves the frame (i.e., Emacs gains or loses focus), the characters I and O are ...
2
votes
1answer
385 views

Launch an emacsclient instance in a new terminal window

I am using Sway/wlroots and I decided to switch to using terminal emacs for the forseeable future as there is no transparency in the xwayland version of emacs. I previously bound emacs to run as a ...
1
vote
0answers
141 views

Strange Emacs Colors in gray30 Background Urxvt

Recently I've been trying out different terminal color schemes. However, I found out that when I change the background of urxvt to gray30, emacs -nw has completely different syntax coloring. I've not ...
0
votes
0answers
85 views

Ctrl-g will stop Emacs(terminal) and send it to background, ending with core-dump

I'm using Ubuntu server without GUI(ssh into the server), so I use Emacs in terminal, but since the first day I use it, Ctrl-g will stop Emacs and send it to background multiple times one day, it is ...
1
vote
2answers
70 views

Add additional function to cua-mode processing for `C-c`

I'm running cua-mode, and I'm trying to override the cua binding for C-c so that I can insert a function somefunc before passing the baton to the original cua binding which is cua-prefix-override-...
3
votes
1answer
373 views

Almost working smoothly attempt to get terminal Emacs to copy to clipboard

I'm running this emacs GNU Emacs 25.2.2 (x86_64-pc-linux-gnu) of 2017-09-22, modified by Debian directly in a Gnome terminal by calling emacs, which is actually a link to /etc/alternatives/emacs. ...
0
votes
1answer
374 views

How to enable 256 colors in terminal

I'm having a problem with setting up colors in my xfce terminal. (list-colors-display) shows only 8 colors, while both my $TERM variable and (tty-type) is xterm-256color. I've dug through the ...
0
votes
2answers
431 views

Why doesn't set-background-color work in my init file?

I have an init file for Emacs located at /home/username/.emacs.d/init.el and it has the command (set-background-color "honeydew"). However, when I open Emacs the color has obviously not changed from ...
0
votes
1answer
124 views

Open emacs in basic mode as default editor

I want to set emacs as the default editor for crontab me@me:~$ cat .selected_editor # Generated by /usr/bin/select-editor SELECTED_EDITOR="/usr/bin/emacs -nw" but find this solution too heavy for ...
1
vote
1answer
142 views

Stop emacs from redrawing display

I'm using emacs from a terminal, and have noticed that certain commands make the terminal screen flicker when I use them. Notable commands are evil mode's recenter-top-bottom and xref-find-...
3
votes
2answers
442 views

Set a title to an Emacs instance running in a terminal

On Ubuntu, I usually open more than one Emacs instances in the same time (for frontend and back development). These instances always by default take the name "Terminal" as a title as shown on this ...
1
vote
1answer
76 views

Why can I not run (text-scale-increase 2) in emacs 26.1 running in terminal?

How come, when running (text-scale-increase 2) from the scratch buffer in an emacs instance running in a terminal, nothing happens besides a counter in the status-bar increasing? In particular, ...