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
2
votes
1answer
313 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
539 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
456 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
847 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 ...
2
votes
2answers
654 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
214 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
74 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
702 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
856 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
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 ...
3
votes
1answer
192 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
122 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
70 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
508 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
352 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
3k 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 ...
3
votes
2answers
6k 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
135 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 ...
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 ...
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
699 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
215 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
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 ...
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
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,...
3
votes
2answers
8k 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
907 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
294 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
646 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
154 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
287 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
224 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
709 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
381 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
296 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
606 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
992 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 ...
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 ...
1
vote
1answer
291 views

.emacs file issues with org-mode TODO tutorials

I am customizing my ~/.emacs file. Specifically, I am customizing org-mode's TODO list feature to include more tasks. However, I keep receiving the following error: File mode specification error: (...
0
votes
0answers
123 views

Emacs (-nw) version 24.4.1 adds escape code to the top of every file, when 24.3.1 doesn't

When I run 'emacs -nw --no-init abc' with emacs version 24.4.1, I always see the same escape codes inserted at the top of the file: "12;rgb:0000/0000/0000". When I run the same command on the same ...
0
votes
2answers
356 views

Emacs not taking full space inside terminal

Image for description: If you notice carefully, blue background of gnome-terminal is visible below where emacs ends. This probably means that emacs isn't taking full space inside gnome-terminal. How ...
3
votes
1answer
698 views

Trying to invoke help (CTRL-H) deletes character on terminal

When I press CTRL-H in emacs running on my xterm, then this is interpreted as backspace and the character before the point is deleted. I've found various discussions about the "opposite" issue (...
6
votes
1answer
634 views

0;95;0c escape code is inserted with typeahead in terminal emacs

Whenever I start the terminal emacs and there is typeahead (i.e., I start typing before emacs starts), the escape code 0;95;0c gets inserted into the buffer. For example, if I run sleep 3; emacs -Q ...
4
votes
3answers
895 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
3answers
975 views

How do I duplicate the 'effective' theme colors resulting from using terminal Emacs with a transparent background?

I'm running GNU Emacs 24.5.4 on Mac OS X 10.10.5 in Terminal.app. In this (stock) setup, Emacs has a transparent background. With a transparent background, the colors that Emacs uses to display text ...
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
46 views

Previous Line Indenting on RET

It seems that whenever I press RET on my emacs init.el file comment lines that the previous line just randomly indents ~4 tabs. I only have a simple load path (nothing currently in there really except ...