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
1
vote
1answer
160 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)...
1
vote
2answers
305 views

esc-right and M-right function differently in org-mode headers

I'm on macOS 10.12.5 and Emacs 25.2.1. For some reason M-right is interpreted as M-f. ESC-right is correctly interpreted as ESC-right. I can't see anything in the macOS keyboard shortcuts list that ...
0
votes
1answer
676 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
4k 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
878 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
44 views

Is the single quote interpreted as repeating the character that follows the single quote?

When I copy some text with single quote and paste (by right clicking and choosing paste) into a emacs buffer with fundamental mode, the single quote seems interpreted as repeating the character that ...
3
votes
1answer
2k views

How do I disable menu-bar-mode only for tty frames?

I run both gui frames and tty frames on the same server. I'd like to only have the gui frames have the menu-bar and I want all tty frames to not have a menu bar. I'm confused by the menu bar docs, is ...
4
votes
1answer
264 views

How to stop “emacsclient -t -a '' --eval” output to stdout?

I am running emacsclient with the command: emacsclient -t -a "" --eval "some-exp" The emacsclient -t -a "" is a must. The problem is, for example, if I run: emacsclient -t -a "" --eval "nil" when ...
3
votes
2answers
1k views

How to turn off bracketed paste mode?

I saw that bracketed paste mode is automatically enabled in Emacs 25.1 running in a terminal. But I want to disable this mode. Because this mode adds text like 200~ 201~ to pasted text, bracketed ...
0
votes
1answer
109 views

Inserting line break into a rectangle

I have a list that looks like 1.530 2.895 4.362 50.14 3.14 2.7 And I want it to look like 1.530 2.895 4.362 50.14 3.14 2.7 I suspect there is a clever way to use a rectangle to do this but I ...
3
votes
1answer
373 views

How to check for emacs being initialized in daemon mode?

I use emacs gui in daemon mode and also in standalone terminal mode. There is a package that I just want to use when I'm using emacs in terminal mode. the problem is that I can't use (display-...
1
vote
0answers
561 views

Ubuntu Emacs Meta Key problem related to keys

I'm using emacs 24.5.1 on ubuntu 16.04 on a Vaio x64 pc. earlier I ran the emacs tutorial and got through it completely no problem. Then I started playing with the "replace-string" command and now my ...
1
vote
0answers
482 views

Find All Dependencies Necessary for an Emacs Install Without X

I'm building a script to install a version of emacs (24.5 in this case) on a small server running on a raspberry pi. Since this will be in headless mode, I have no need for a GUI/X windows based ...
23
votes
2answers
894 views

What was Emacs like back in the 80s?

I've looked all around for footage of ancient Emacs distributions, but to no avail. The source code for Emacs 16.56 from July 15, 1985 is available on Github, but under no circumstances could I manage ...
3
votes
3answers
738 views

Replace selected text on [shift insert] is broken in emacs 25.1

I updated to 25.1 and found that copy/paste works differently. For example when I select a word "visit" and try to replace this word with [shift insert], text in clipboard is inserted in the ...
0
votes
1answer
255 views

global-set-key not working in terminal

I have the following line in my .emacs.d/init.el file (global-set-key [(control tab)] 'other-window) ;; remap f1 to undo (global-set-key (kbd "<f1>") 'undo) When I use the full X-window GUI ...
2
votes
0answers
78 views

Escape sequences like [<8;38;34m being inserted into my document when I middle click

I recently updated to emacs 25.1, and I'm noticing that sometimes escape sequences like [<8;38;34m or [<8;20;27m are being inserted into my document. I use emacs in the terminal (emacs -nw). I ...
1
vote
1answer
741 views

linum-mode not working in OSX built in emacs version 22.1.1

I'm running emacs through my terminal on OSX and was trying to get my line numbers on here. Ran the command M-x linum-mode with a [No match] result. Tried global-linum-mode, same result. emacs --...
2
votes
3answers
954 views

xterm-mouse-mode use mouse on clickable texts

I am using emacs with PuTTY. I have xterm-mouse-mode turned on, and it works nicely, except that nothing happens when I click on "clickable texts" for example on the start page, or in neotree. Is ...
1
vote
2answers
1k views

Unable to change cursor type in terminal

I'm trying to change the cursor type in Emacs. Here are the steps I'm following, C-h v cursor-type check the value of cursor type. It is set to t. start emacs with emacs -nw -Q and type (setq cursor-...
1
vote
1answer
3k views

display images in emacs w3m in terminal

I would like w3m in emacs (in a terminal) to show me pictures. Showing pictures in emacs gui works: Showing pictures in the terminal without emacs works: But in emacs w3m running in a terminal, no ...
3
votes
1answer
210 views

Avy - Moving Between Terminal Frames

I've only just recently started using avy to navigate inside my buffers and it seems to work nicely. As for my question however, with avy-all-windows set to all-frames I am able to navigate between ...
2
votes
2answers
133 views

How to avoid double M-y with system clipboard integration in the terminal

I added Mac clipboard integration to my emacs -nw using the following code, adapted from here: (defun copy-from-osx () (shell-command-to-string "pbpaste")) (defun paste-to-osx (text &optional ...
1
vote
0answers
72 views

Why is this function working properly in GUI-Emacs, but not in terminal Emacs?

Setup: Xubuntu 16.04, GNU Emacs 25.1.50.2 I have the following function defined. (defun sudo-edit (&optional arg) "Edit currently visited file as root. With a prefix ARG prompt for a file to ...
2
votes
1answer
570 views

Emac in Terminal opens in unusable green background

[OS X 10.11, MacPorts Emacs 24.5, OS X Terminal, lots of stuff in emacs and shell init files] I almost always use Emacs.app (GUI). Sometimes I want to open Emacs in a terminal. When I open Emacs from ...
6
votes
1answer
398 views

What controls things like cursor appearance in a terminal?

In the GUI version of Emacs, it is easy to see that something like (blink-cursor-mode t) makes the cursor blink. However, in a terminal emulator, such as on Mac OS X, it is possible to set things ...
6
votes
4answers
4k views

What is the difference between standalone version of emacs and the one that runs inside terminal?

I am not sure if my question makes sense. I am naive to this. I see that there is a standalone version of emacs with the menu bar, tool bar etc. Also, I see emacs version that could be run inside a ...
5
votes
3answers
7k views

copy from shell and paste in terminal-emacs

How can I copy from the command line and paste in Emacs in terminal mode? If I select the text with the mouse and paste it from the clipboard with the third button (the wheel) it is OK. But if I try ...
1
vote
2answers
145 views

python process failed to load environment variables in OSX

In Emacs 25 GUI, 1. Shell process loads environment variables, 2. Python process, started by run-python, doesn't load environment variables. Run Emacs terminal mode in iTem2: Both shell and python ...
4
votes
1answer
1k views

Disable line highlighting in terminal

I'm currenty using emacs line highlighting and I found it useful when doing my work in GUI version of emacs. However, I find it uncomfortable to have such mode during my work in terminal. The color of ...
4
votes
1answer
3k views

How to hide leading stars in windowless emacs org-mode?

I've been working hard to get emacs and org-mode working inside of my tmux workflow. And i've got a pretty decent setup. :) I installed org-bullets to get utf8 bullets, it worked. But even if I set ...
1
vote
1answer
732 views

Terminal: get 16-colors default color scheme in 256color mode

I really really like the default (dark) color scheme in 16 colors terminal/tty emacs (TERM=xterm), but with some plugins like powerline, 16 colors doesn't cut it. Hence I need to switch to 256colors (...
0
votes
1answer
35 views

Output of emacsclient not visible in terminal, in contrast to Vim

Version: GNU Emacs 25.1.50.2 (GTK+ Version 3.18.9). Gnome terminal. When I type in terminal emulator: vim foo/bar.el. Then I close the Vim session with :wq, I see the content of my Vim screen in the ...
0
votes
0answers
225 views

Emacs+Python+Pygame segmentation fault (core dumped)

I am using Emacs 24.5.1 for writing something in pygame in python 2.7.11. Very often (precisely speaking every second time!) when I try to evaluate the buffer (the whole file) with C-c C-c everything ...
3
votes
0answers
231 views

Emacs 25 + comint + -nw = eaten newlines

I've been building and running Emacs 25 prereleases on a recent Fedora system that I usually access via ssh. I usually run this emacs in a terminal, and I'm fond of using ansi-term inside it. I've ...
3
votes
1answer
1k views

Latex rendering and details

I know this may have been answered before, but the point is these questions seems to be asked by people who have experience with emacs, lisp, and org mode but not for beginner. So, sorry for such a ...
0
votes
0answers
186 views

Slime fuzzy completion not working correctly in TTY mode

I have Slime configured with fuzzy completion and it works perfectly when I'm using it in X11 mode (M-TAB, list of completions pops up in a separate buffer, C-n/p allows to choose the right completion,...
4
votes
2answers
13k views

How can I quit Emacs from within a term within Emacs?

I'm in a situation where I have to ssh into a machine and do all of my coding on there. For a while I would ssh in and then use tmux and emacs -nw mode. Recently, I discovered the term command. Now ...
5
votes
1answer
1k views

Emacs in PuTTY with xterm-mouse-mode: how to paste?

I'm running Emacs under PuTTY and this works better then I expected. But since I sometimes use the mouse to focus the PuTTY window, I turned xterm-mouse-mode on. This way the focus in the text changes ...
1
vote
1answer
1k views

Identify remote directories and open files through tramp from emacs terminal

Emacs terminal (from multi-term) can automatically detect a folder path. So performing C-x C-f from a local directory, automatically provides the path to that directory to open any relevant files. ...
6
votes
1answer
322 views

Check if terminal supports Unicode

I would like to use special mark symbols not only in window-system but also in xterm: (setq gnus-summary-to-prefix (if window-system "▒ " "==> ")) What check I should use?
1
vote
2answers
710 views

Opening an External PDF in the Terminal

This is migrated from the LaTeX stack exchange. I am using Emacs on the Mavericks OSX Terminal. I can open the TeX file fine, but I can compile a pdf via C-c C-c. Is there some way that I can open the ...
1
vote
1answer
164 views

send-string-to-terminal but hide output

I'd like to send some commands to the terminal Emacs is running in, using send-string-to-terminal. However, some terminals don't support the command I have in mind. When this is the case, the command ...
0
votes
0answers
310 views

Change cursor-type in MinTTY

I'd like terminal Emacs to observe the current value of cursor-style when the current terminal emulator supports commands to change the cursor. For example: MinTTY is the default terminal emulator ...
1
vote
0answers
232 views

Define key chords for windmove

I'm following info found on this link, but cannot get the desired custom key bindings to work for windmove. Basically, I put the following in my .emacs file: (global-set-key (kbd "C-M-<left>") ...
0
votes
0answers
793 views

Can't remove cursor blinking in console mode

Emacs 24.3.1, OS: Linux Slackware 14.1. In my ~/.bash_profile file I have the following: # If on console, change cursor colour according to # /usr/src/linux/Documentation/VGA-softcursor.txt # Reset ...
0
votes
1answer
410 views

Weird keyboard behaviour by Emacs in a terminal [duplicate]

I am having problems to configure my EMACS in -nw mode using linux thorough ssh. I am trying to map Ctrl+Shift+z to redo using undo-tree-redo. I tried the following code (defalias 'redo 'undo-tree-...
1
vote
1answer
375 views

how to substitute SUPER keybindings in Emacs terminal mode?

In GNU Emacs GUI, I use the Mac Command key ⌘ as super: (setq mac-command-modifier 'super) However, the ⌘ key does not send input to Terminal or iTerm2. Given this, is there a way to simulate the ...
2
votes
4answers
692 views

What linux terminal app is compatible with emacs keybindings?

I am using terminal Emacs (emacs -nw). Gnome terminal doesn't behave well with it (key bindings break), and KDE's Konsole is even worse. Surprisingly, when I ssh from a windows machine the behavior is ...
1
vote
3answers
1k views

Colors illegible after upgrading OS

After having upgraded a computer from Ubuntu 15.04 to 15.10 the colors in Emacs (which I run in the terminal with --no-window-system) have changed substantially and some text is now illegible. I would ...