Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

2
votes
0answers
15 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
37 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
2answers
49 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
23 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
16 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
28 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
42 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
50 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
53 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
1answer
73 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
0answers
41 views

How to make emacs appear as if it is being run through a PuTTY terminal?

Throughout undergraduate, I used emacs via PuTTY from my Windows laptop (the school had a C toolchain set up on a server so I ssh'd in to do all my CS assignments). Now, I have set up my own local ...
0
votes
1answer
30 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
36 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 ...
0
votes
0answers
47 views

How can I set a directory buffer in one window to open files in another window?

The setup I am going for would look something like this: ------------------------------ | | | | | B | | | | | A |----...
1
vote
0answers
32 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
51 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
30 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
27 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 ...
1
vote
3answers
93 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
33 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?
0
votes
1answer
172 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
2answers
135 views

Emacsclient freezes on terminal

I run Emacs 25.3 on Mac OS X. I installed it with brew cask. I launch frames with the following set of scripts taken from here I open GUI frames with emacsclient like below #!/bin/bash # Number of ...
0
votes
1answer
162 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
249 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
60 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
74 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
80 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
71 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 ...
0
votes
0answers
26 views

Eval in running terminal emacs tmux window from other terminal tmux window?

I'm using tmux, and in one window I have running emacs, in other - shell. My question is following: is there a way to run emacs eval command in window with shell running, and command will be run in ...
2
votes
1answer
101 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 ...
0
votes
0answers
41 views

Bind <xterm-paste> key in terminal Emacs

I have strange behavior of remapping <xterm-paste> keysequence in terminal Emacs. In my Emacs config I have this: (global-set-key (kbd "<xterm-paste>") 'sandric/clipboard-paste) But for ...
2
votes
0answers
122 views

How to copy into mintty xterm clipboard from terminal emacs

My host machine is Windows, but I'm working in Linux virtualbox machine over ssh from mintty in MSYS2 environment. As you may know, in mintty you copy via C-insert and paste via C-S-insert. When I ssh ...
3
votes
1answer
144 views

How to detect the term color support inside of a emacsclient session?

I run a emacs daemon on boot as a OpenRC service without info about terminals. When I plug a different terminal on emacsclient so, I don't have env variables instead that was generated inside of emacs ...
6
votes
1answer
806 views

#000000 and true black in terminal Emacs colors

I just ran into a weird issue while tweaking my colour theme for terminal Emacs. The background wasn't appearing as black as expected, but grey, even though the background was set to #000000. So I ...
0
votes
2answers
59 views

Emacs shell mode showing unwanted char

my emacs shell mode screen shot ... Normal shell looks like this... I have .emacs file empty.. emacs version 24.5.1 I already tried this https://stackoverflow.com/questions/20663005/why-does-...
0
votes
1answer
41 views

Emacsclient choosing the wrong emacs

I have Emacs running in deamon mode at /usr/bin/emacs --daemon I have been told to start emacs as client I can type emacsclient -c -a "" $* However, that command starts up a new version of the GUI ...
1
vote
2answers
65 views

emacs: saving org headline visibility

I have an org file at ~/foo.org it looks like this (see bottom of this question) I reboot my pc every day, and the first thing I do is open this file. Then I do the mundane task of pressing tab to ...
0
votes
2answers
360 views

less psql, more emacs

I was listening to this song today - https://www.youtube.com/watch?v=ajy71xw351E Don't Wanna Leave You Now 🎵 🎶 and I realized how much I don't want to leave emacs. I often do this after ...
2
votes
1answer
118 views

How do you grep from within emacs ( git grep 'foo' | grep baa )

I do this often after shelling out to bash $ git grep 'banner-image' | grep mb3 Can I do it without leaving emacs?
0
votes
0answers
103 views

How to get remote files to open in the local emacs when using tramp?

On most of my machines I have the VISUAL and EDITOR variables set to emacsclient. This works well as when I am on those machines and I have something that requires a default editor I want it to open ...
1
vote
0answers
64 views

Emacs lines displaced/shifted for no reason

I tought, the problem would be solved, from not using a theme anymore. But actually there are displaced lines, whenever I'm using emacs with files, which where edited on another system. So probably my ...
2
votes
1answer
45 views

nw in powershell; themes ignored

I'd like to run emacs in powershell (on windows 7) with emacs -nw with the misterioso theme. When I M-x load-theme misterioso the theme'ing doesn't happen. However when I M-x load-theme manoj-dark, ...
0
votes
0answers
26 views

emacs: leaving buffer in terminal emacs

After opening a file with emacsclient -nw foo.txt I see When done with a buffer, type C-x # in the minibuffer. I however habitually do C-x C-c instead of C-x # Is there a practical difference ...
1
vote
1answer
327 views

Does emacs use ncurses to render in the terminal?

I was trying to figure out how Emacs renders so fast in the terminal, especially since I think it might have to redraw a large portion (or all the terminal) most of the time. But I haven't yet dug ...
1
vote
1answer
76 views

Custom title format in iTerm2 / Terminal

I've been looking all over but none of the guides I saw worked for me. I am trying to have the title of Spacemacs to show a custom format, namely the current project's name (the current folder's name)...
0
votes
0answers
28 views

Bug with closing parenthesis in terminal emacs

This strange bug appeared today when I run "emacs -nw" and type some code when closing a parenthesis garbles the display. See the screenshots below for an example: http://web.mit.edu/velicanu/www/mid....
0
votes
1answer
225 views

How to prevent emacs theme to load when running on terminal

Hi I'm asking this question because this;[1]: Different theme for -nw (terminal) and few others didn't work for me. Allright, first of all I am not a programmer/devoloper, and I don't know lisp (...
4
votes
1answer
2k views

Conditional True color (24 bit color) support for iTerm2 and Terminal.app in OSX with Fish shell

I'd like to try and get to a similar setup that I have with N/Vim in OSX, whereby Truecolor support is enabled in iTerm2 (which supports 24bit colors) but disabled in the native Terminal app (which ...
1
vote
1answer
350 views

How to use menu bar at the top via mouse?

I am opening emacs in --no-window-system mode and I switched xterm-mouse-mode on. Mouse clicks within a buffer work. However, I want the menu at the top of the window to open when I click on it. I.e.,...
0
votes
0answers
150 views

Cannot remap alt-cmd on mac os in terminal

I'm using macOS 10.12.1 and homebrewed emacs 25.1 in the terminal mode. And I tried to use my left Command as Meta character as described in emacswiki by putting in my .emacs file: ;; key bindings (...