Questions tagged [terminal]

is for the Emacs text terminal emulator, which by default runs in a sub-shell in a buffer named `*terminal*` with `term-mode`. `M-x term` command starts a terminal.

Filter by
Sorted by
Tagged with
1
vote
0answers
21 views

How to restore a coding environment?

Every other day I continue work on a coding project which involves these steps: Open a file in the project Open a terminal buffer e.g.: m-x term Change to that term buffer Enter command in termin e.g....
1
vote
1answer
210 views

How to turn off line wrap when opening from terminal

I'm trying to open a file from terminal and ensure that line-wrap will be off. I'm trying the following code, but it won't work emacs --no-window-system --eval '(setq truncate-lines 1)' file I don't ...
1
vote
0answers
26 views

how to achieve the behavior of :silent !a.out in vim

I am on terminal. I'd like to invoke a ncurses based program a.out. In vim, I do :silent !a.out, which will directly show a.out. In emacs, the closest thing I can do is (suspend-emacs "a.out"). ...
1
vote
0answers
169 views

How to enable control character (e.g. carriage return) handling in emacs shell

I run compilation processes that, in a terminal, list what was built all on the same line. In emacs shell they are all on separate lines, filling my shell buffer with unwanted output. I realize I ...
1
vote
0answers
632 views

single escape to quit helm in terminal

This blog post on migrating from vim to evil-mode in emacs gives code to make a single ESC quit/cancel helm instead of 3. It worked on Emacs.app (OS X) but doesn't work from Terminal.app (both emacs ...
1
vote
1answer
230 views

Latex fragment in terminal

I am currently discovering orgmode and as a math student I want to write my math lessons with this beautiful tool. I love the way LaTeX code can be displayed inline in emacs. I would like to know if ...
0
votes
3answers
209 views

How can I use Emacs and iTerm for the same keybinding?

In my .emacs file I have also set ctrl-o to delete a word: (defun backward-delete-word (arg) "Delete characters backward until encountering the beginning of a word. With argument ARG, do this that ...
0
votes
2answers
528 views

Set specific TERM variable for only emacs terminals

I'm using multi-term right now in GUI cocoa emacs on OSX, and it works great in general. However, I'm running into a bit of an issue with my TERM variable. I generally set it to xterm-256color for ...
0
votes
1answer
330 views

Set different highlight-line color for emacs --no-window

How can I set a different color if I am using emacs on terminal (emacs --no-window)? I use a grey highlight line when using emacs with GUI because my background theme is white. Here is the code I use ...
0
votes
1answer
41 views

How input all params from console without interactively?

Here snippet of my elips function: (defun log-report (filePath uniqueText) "Create log4j record report from any log4j (e.g.traceXXX.log) files. Log4j level MUST be in square brackets. e.g.: [DEBUG] ...
0
votes
1answer
85 views

how to map <C-M-left>, <C-M-right> etc to the correct hex codes in iterm2

I'm looking to configure iterm2 to output the correct hexcodes that correspond to in emacs. There's a whole bunch of mappings predefined but it's very cryptic. I'm a little bit lost as to how these ...
0
votes
1answer
463 views

Can not activate a virtual environment in emacs, but can through the usual shell

I created a virtual environment that I can activate used a command line from Terminal (Ubuntu): source/bin activate I did what follows to achieve the same on emacs: M-! then source/bin activate ...
0
votes
1answer
117 views

How to run `gprolog` under an Emacs sub-process shell?

I'd like to run the gprolog interactive interpreter in an Emacs sub-process shell (started with M-x shell). The interactive interpret starts without a problem, but it does not respond to some ...
0
votes
0answers
35 views

emacs -nw & gnome-terminal or xterm: can't distinguish C-M-v and C-M-S-v

emacs (v.26.3) can distinguish, out of the box, C-M-v (scroll-other-window) and C-M-S-v (scroll-other-window-down). On the other hand, emacs -nw, when run in either gnome-terminal, mate-terminal or ...
0
votes
0answers
32 views

How do I stop a process with Ctrl-C in Term?

I'm very new to Emacs. I've opened a terminal with M-x term, and started a server running on localhost. It says Press CTRL+c to quit. However, Ctrl-C appears to be mapped to Emacs commands. How can I ...
0
votes
0answers
36 views

Can't run emacs from terminal.Cannot open load file: No such file or directory

Emacs 26.1 Linux Mint 19 Open terminal, write emacs, but I get error: Warning: Could not find simple.el or simple.elc. Cannot open load file: No such file or directory
0
votes
0answers
41 views

Start Terminal Process in Named Buffer?

Using (spacemacs/default-pop-shell) we can emulate a terminal in emacs. But is there a way to pop a shell in a named buffer (say *buffer-name*) that will persist outside of our normal popped shell?
0
votes
0answers
18 views

How to build using a tty for output?

When building, some build systems check a tty for nicer output. In the case of ninja this is used for \r to print into the same line (avoid flooding the build log). Color output. Is there a way to ...
0
votes
1answer
41 views

How do I open a .gpg file from the command line?

I have a file located in the directory ~/myfiles/list.txt.gpg. In the terminal, I type emacs ~/myfiles/list.txt.gpg and I get something that looks like this, which I'm guessing is the still encrypted ...
0
votes
0answers
22 views

Record command into bash source block using asciinema and org-babel

As you perhaps know, asciinema rec (asciinema rec path/to/file) and generate an asciicast file which contain all commands recorded on terminal. I think using asciinema to replay this file (asciinema ...
0
votes
1answer
57 views

How to show colours and clear when running React development server in eshell?

Here is how the usual Ubuntu terminal looks when you run the React development serving using npm start and make changes to your source: Say the server was already running and you tried to do npm ...
0
votes
1answer
93 views

How can I get working motion keys with `emacs -nw`?

when I start Emacs without windowing system (-nw), the motion keys are not working. Instead, I get (parts of) the escape sequences, like: ;; This buffer is for text that is not saved, and for Lisp ...
0
votes
0answers
230 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
59 views

Spacemacs terminal emulator share history with zsh

In plain vanilla emacs, I can M-x term RET RET. This starts zsh. And it 'shares' history with my non-emacs terminals. So, I can ESC / and search for commands, etc. How do I achieve that for ...
0
votes
0answers
199 views

term without line numbers and highlight for current line

I have the following settings in ~/.emacs: (setq linum-relative-current-symbol "") (linum-mode) (linum-relative-global-mode) (global-hl-line-mode t) In order to supress both these features in ...
0
votes
1answer
36 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 ...

1
2