Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
21 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
19 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
38 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
118 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
19 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
42 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
74 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
46 views

Emacs shell on OSX with zsh and iterm displays weird characters

I am using Emacs for OSX along with iTerm and zsh, when I load up a shell via M-x shell and run pwd and various other commands, weird chars are outputted in the result of the command. pwd: [j:~]$ ...
0
votes
0answers
40 views

Displaying images in Emacs with no support for windowing systems

I am running Emacs in a Terminal application, or more specifically iTerm2, which is able to display images within the terminal, like this I'm wondering if it is possible to have images displayed on ...
0
votes
1answer
73 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
86 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
40 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
35 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
133 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 ...
0
votes
1answer
33 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, ...
1
vote
0answers
41 views

Show Git gutter after linenumbers

I am using emacs-nox and as some of you know there are always some problems if you want to display you line numbers while also using git-gutter. (Stuff like some extra margin jumping numbers etc.) ...
0
votes
1answer
94 views

Weird behavior: GUI won't start, but terminal emacs will

As I said in the title, I'm having a problem with starting Emacs, whenever I try to start it with rofi, nothing happens, and when I try and start with terminal (using emacs), it returns "Args out of ...
1
vote
3answers
685 views

My left alt key (OS X) does not work as Meta key in Emacs (terminal)

I have an Italian keyboard layout. My left Alt/Option key does not behave as the Meta key in Emacs terminal (OS X), but it behaves as the Meta key in GNU Emacs (GUI) downloaded from https://...
1
vote
0answers
21 views

Return key when Emacs running inside a terminal [duplicate]

I have re-assigned the RETURN key to exit the insert state in Evil mode. (define-key evil-insert-state-map [return] 'evil-normal-state) But this does't work with emacs -nw in terminal. Any way to ...
0
votes
1answer
91 views

Highlight compilation error in compilation mode buffer

I know how to highlight the source code corresponding to the selected compilation-mode error. I also know about the little arrow in the fringe that points to the error in the compilation buffer, and ...
1
vote
0answers
113 views

Emacs wrapping lines that are exactly 80 characters long in a 80x24 terminal

Using a 80xN terminal, I'm seeing that lines that are exactly 80 characters long are wrapped and the 80th character is shown on a separate line: Is there some way to stop emacs from wrapping lines ...
0
votes
1answer
28 views

Managing daemons with emacs

Every morning I have the tedious task of staring a dozen or more service on my macOS. During the day I might want to stop/kill a few of them Some services error out on startup. I would like to ...
1
vote
1answer
104 views

How to use emacsclient in terminal to switch git branches?

I'm trying to make a setup that will use emacs as a command line tool to switch git branches. The idea is to run some command in terminal, something like emacsclient -t -e "(magit-checkout)". This ...
0
votes
0answers
21 views

Connect company to external ruby process

Recently, I used more and more pry to develop emacs and open Emacs using the command edit. The EDITOR variable is set to an emacsclient, that I had the server started with an inf-ruby buffer and robe-...
2
votes
1answer
95 views

Arabic in Terminal mode

I know that emacs supports Arabic and I have seen many questions on Arabic support but my problem here is specifically with emacs in the terminal. It can be seen in the image bellow in the left side ...
3
votes
1answer
74 views

How to save SVG image to disk?

Looking for a tool to programmatically generate SVG images, I found that Emacs 26 can do it out of the box! Example adapted from the Elisp reference manual: (require 'svg) (let ((svg (svg-create 400 ...
0
votes
3answers
108 views

emacsclient -nw and strikethrough text in org mode

https://orgmode.org/worg/org-tutorials/org4beginners.html You can make words *bold*, /italic/, _underlined_, =code= and ~verbatim~, and, if you must, +strike-through+. How to strikethrough a word, ...
1
vote
0answers
38 views

emacsclent -nw hangs

As I use emacsclient -nw -c in a terminal e.g. xterm -e emacsclient -nw -c, emacs hangs when I resize horizontally (to the minimum allowed by the wm). I can't no longer launch any emacsclient window, ...
0
votes
0answers
57 views

How to disable the line coloring in the wombat Emacs theme?

I want to start using Emacs through the terminal, and I have settled on the wombat theme which seems to work best with my terminal. The only weird thing about the wombat theme is the golden line which ...
0
votes
0answers
86 views

Fixing Evil inside Emacs terminal mode

I use Evil mode inside Emacs to emulate vim-style editing. In the Xwindows based graphical user interface of Emacs on Ubuntu 16.04, Evil mode works perfectly. When I launch emacs in terminal mode ...
0
votes
0answers
247 views

Copying Text from Terminal Emacs over SSH?

I have emacs running on machine A. I then connect to emacs via a terminal (over SSH) from machine B. Question: From Machine B, how do I copy text to Machine B's clipboard to paste it, i.e., into a ...
0
votes
1answer
88 views

mode-line refresh with alerts and weechat

Note - The original post incorrectly diagnosed this as a terminal issue. Further testing showed this not to be the case - the issue is a race condition in the alert package. I've crossed-out the now ...
1
vote
1answer
77 views

Unexpected behavior using SHIFT+arrows and CTRL+arrows on emacs (orgmode) + terminal + mosh + screen

I am connecting in a machine using a terminal, mosh and then screen. Then, in my orgmode file I can't use the shortcuts like SHIFT+up, SHIFT+left or CTRL+up etc. If I press that, it produces something ...
3
votes
2answers
364 views

Copy/paste between SSH terminal Emacs and macOS

Suppose you are working in macOS, and you decide to SSH into a Linux box and fire up terminal Emacs. How do you copy and paste between macOS and your SSH terminal-Emacs? Copying and pasting between ...
0
votes
1answer
35 views

Can I merge the buffers opened in one emacs process into the other emacs process?

In bash in a terminal emulator, I run two independent emacs processes. I created them in bash by emacs -nw and in each, I opened several buffers. I switch between them by making one process into ...
2
votes
0answers
43 views

Launching GUI emacslient destroys terminal frame resizing capabilities

Whenever I launch a GUI session as $ emacsclient -c all the emacsclient sessions I've created with $ emacsclient -nw -c lose several settings. The problem only occurs right after launching a GUI ...
1
vote
0answers
34 views

Tell emacsclient/server to stop whatever it's doing (from another terminal window perhaps)

I opened an .xml file inside emacsclient -nw not realizing it's large (55MB) Now I'm staring at my terminal/emacs for several minutes. It seems frozen but I know from experience it will eventually ...
1
vote
1answer
71 views

Is this a bug? emacs freezes when doing “sudo service apache2 status” inside a org babel tramp remote code block

I think I've found a bug with emacs+org+babel. This block runs fine #+BEGIN_SRC sh :dir /ssh:ubuntu@54.175.231.31:~/ :exports both :results output sudo service --...
1
vote
1answer
45 views

Binding the “Insert” key when running within a terminal

I accidentally hit the insert key so often that I put some code in my .emacs to disable the overwrite-mode key binding: (define-key global-map [(insert)] nil) (define-key global-map [(control insert)]...
0
votes
0answers
37 views

Bind M-[ and M-] when not in a terminal

What is the correct way to bind keys only for X frames? E.g. some key combinations are part of terminal escape sequences, but otherwise should be bindable when not running in a terminal. Currently, I ...
2
votes
3answers
121 views

adhoc emacs Elisp command to send emacs clipboard text to osx clipboard

When you press 'y' (elfeed-search-yank) in an elfeed-search buffer, the selected entry's permalink url is copied to the emacs clipboard. I don't have any automatic clipboard sync packages installed, ...
0
votes
1answer
91 views

C-RET not recognized by Emacs in terminal [duplicate]

Attempting C-c C-RET gives me the following: C-c RET is undefined Any thoughts on what is happening here?
1
vote
1answer
501 views

all-the-icons - weird icons after update

I recently updated my emacs packages, after this, all-the-icons change its icons. Now, that's how they look Why a .md file icon is a wheater icon? How I can go back to my previous icons?
0
votes
1answer
471 views

Emacs evil-escape does not work

I have just installed spacemacs recently. I press fd to switch from insert state to normal state, but it does not work. The combination keys fd shown on the editor then disappear, but when I press ...
2
votes
1answer
570 views

fix “Terminal is not fully functional”

What can I do about this issue? I'm using psql, inside a ssh tunnel to ubuntu, inside a M-x shell, inside a emacsclient -nw
0
votes
1answer
84 views

Run keyboard macro after open file?

Is it possible to run a keyboard macro in Emacs right after opening a file? For example, when I open a text file I want to get information in buffer Hello world.
0
votes
3answers
105 views

Dired+ key binding issues in terminal emacs

Using the Dired+ library, and running Emacs in a terminal, all arrow keys in dired buffers invoke M-O (which is bound to diredp-chown-this-file) instead of correct <left> <right> <up&...
5
votes
2answers
93 views

local keymap in mode-line doesn't work in terminal

I'm having trouble with getting local keymap:s to work in the mode-line, but only in terminals (with xterm-mouse-mode enabled). This applies to both the standard mode-line entries (like mode-line-...
0
votes
1answer
93 views

error: Package `xah-fly-keys-' is unavailable

I am setting up a .emacs file that I will be using in Docker containers. I want to include xah-fly-keys but I am getting this error message. Package `xah-fly-keys-' is unavailable When I start ...
2
votes
1answer
166 views

How to use M-O on Emacs in terminal?

I bind M-o to next-word, and want to use M-O to shift-select next word. M-O works well on Emacs GUI app on Mac, but not on Emacs in a terminal. The reason is: In the terminal, up-arrow is encoded as ...