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
15
votes
2answers
4k views

Shift+Up isn't recognized by Emacs in a terminal

Very often I use Shift+Up/Down to select a region in Emacs. It works fine in GUI mode, but when emacs is invoked with -nw option I can select lines only with Shift+Down. The Shift+Up doesn't work, I ...
1
vote
2answers
233 views

In terminal, C-) and ) both execute evil-forward-sentence. I want C-) to run paredit-forward-slurp-sexp

If I type C-f paredit-forward-slurp-sexp, Emacs tells me the command is mapped to C-). Yet through C-h k I realized that both C-) and ) run evil-forward-sentence. If I do C-f evil-forward-sentence, ...
0
votes
2answers
103 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
73 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 ...
6
votes
2answers
2k 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
211 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?
1
vote
0answers
73 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 ...
4
votes
2answers
2k views

Copy and paste between Emacs in an X terminal and other X applications

I am running Emacs in Gnome-terminal on Ubuntu. The way I know to copy and paste between emacs and other applications is by Ctrl+C and Ctrl+V, which I think is by the terminal emulator. A problem ...
2
votes
1answer
98 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
33 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
796 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 ...
2
votes
1answer
316 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-...
0
votes
1answer
624 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 ...
2
votes
3answers
876 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
1answer
795 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.,...
4
votes
3answers
2k views

Use the command key in Terminal on OSX?

Is there a way to use the Apple command key in Emacs in the terminal? It would be nice to expand the set of easy to get at key bindings I can use.
1
vote
3answers
999 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 ...
3
votes
1answer
732 views

emacs --daemon frozen when started with emacsclient file

This is somewhat of a follow up to Prevent emacsclient from blocking other instances. I am using emacsclient -a '' -nw --socket-name=$TTY where TTY=$(basename tty). I use emacs in the terminal and ...
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 ...
4
votes
1answer
237 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 ...
6
votes
2answers
1k views

What are my options for scroll bars in terminal emacs?

I use emacs in the terminal. One thing that I miss sometimes from a more traditional GUI editor are scrollbars. Sure, there's the percentage in the modeline, but sometimes you just want a ...
5
votes
3answers
912 views

How to change green background in magit running in xterm

I am running emacs in xterm with 'emacs -nw'. When examining diffs I find it hard to read text typed in yellow foreground and green background. How do I change it to eg. green/black or green/default ...
3
votes
1answer
197 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 ...
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 ...
0
votes
0answers
180 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,...
0
votes
1answer
107 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 ...
1
vote
0answers
542 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
463 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 ...
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
2answers
138 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 ...
0
votes
1answer
221 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 ...
1
vote
0answers
76 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
719 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 --...
1
vote
1answer
2k 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 ...
2
votes
2answers
124 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
71 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
515 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
358 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 ...
1
vote
1answer
712 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 (...
3
votes
2answers
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 ...
2
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 ...
1
vote
2answers
656 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 ...
3
votes
0answers
228 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 ...
1
vote
1answer
939 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. ...
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
216 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 ...
0
votes
1answer
411 views

Emacs in OSX Terminal.app not filling entire window

I recently (finally) figured out how to get a monokai theme onto my emacs in the default Terminal app, but emacs still isn't filling up the entire window. There's a small, but noticeable color ...
2
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
722 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 ...