Questions tagged [linux]
for Emacs and GNU/Linux operating system-specific issues about compiling, installing, configuring, running, editing, and debugging.
93
questions
0
votes
0answers
37 views
emacs27 : Depends: emacs27-common but it is not going to be installed
I has Emacs 25.3
emacs -version
GNU Emacs 25.3.2
Copyright (C) 2017 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms ...
0
votes
0answers
19 views
Emacsclient works in terminal but not in gui mode
Prerequisites
GNU Emacs 28.0.50 built from sources.
Emacs daemon started via systemd with .config/systemd/user/emacs.service:
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(...
0
votes
2answers
137 views
How do I get colour emoji to display in Emacs
Emacs 27 gained support for Cairo for font rendering and this is supposed to let me render emojis but I can't find out how to make it work. I just about managed to set up some fontsets but the emoji ...
1
vote
1answer
56 views
How to call Elisp functions from my own implementation of a shell?
I'm writing my own shell which can handle most of the GNU/Linux system calls now. So I was wondering if I could make this shell call Elisp functions too. Is it possible to do so? Is so, how do I get ...
2
votes
1answer
70 views
Binding XF86Cut and XF86Copy to Emacs Commands
I have a keyboard with dedicated keys for XF86Cut, XF86Copy, XF86Paste. I want to bind these to Emacs commands. The goal is get the usual behavior for cut-and-paste between Emacs, my terminal, and my ...
1
vote
0answers
18 views
Is the Hyper modifier key usable on non-X11 platforms?
I have a hyper modifier setup, however I was wondering if it's possible to use this on any windowing systems besides X11, for example:
macOS
Wayland
Win32
The terminal.
0
votes
0answers
22 views
Receive windows manager notifications of display changes
Is there a way for emacs to receive display changes notification from the windows manager? I understand this might be an OS dependent question, so I'm particularly interested in the interaction ...
0
votes
1answer
68 views
Spacemacs crashing on start with Ubuntu 20.04
I'm having a problem where every time I open Spacemacs it immediately crashes on Ubuntu 20.04. It was crashing for some actions with Magit and starting a CIDER REPL so I decided to do a fresh install. ...
1
vote
1answer
38 views
Emacs terminal - the location before the command prompt
My emacs terminal is currently displaying ;0user@Ubuntu: ~user@Ubuntu:~$".
This happened after my friend was using my laptop, and is persisting after uninstalling and reinstalling emacs, as well as ...
0
votes
1answer
36 views
Newbie to emacs. need help
Are there any good resources that anyone can suggest. I rate myself 3 out of 10 when it comes to using editors like vim
2
votes
0answers
46 views
emacs: Work out which monitor is the primary one
Is there a way to programatically work out which display is considered the "primary" display for X within emacs?
I've managed to get a function working that determines if the machine has more than ...
1
vote
1answer
459 views
Does Emacs 26.3 require older version of ImageMagick?
I've just upograded Ubuntu 19.04, which installs imagemagick 7. When trying to start my Emacs install, I see the following error:
emacs: error while loading shared libraries: libMagickWand-6.Q16.so.3:...
1
vote
1answer
62 views
C-/ results in backspace in the Linux console
I am using emacs on many machines, and always use C-/ for undo. However, I started working on a Raspberry Pi with Arch Linux recently, using a local text terminal - X is not installed. Here, C-/ has ...
1
vote
0answers
97 views
Can emacs on Mac using native window system connect to an emacs server on a Linux system
At this point I believe I am using the emacs version on my Mac that is built by Homebrew and the "stock" emacs on Ubuntu 18.04.
I set up emacs server on the Ubuntu host as it is described in Starting ...
2
votes
0answers
71 views
Access Serial Port on Remote System
Is there a nifty emacs command to access the serial port on a remote system?;)
I've seen socat, which creates a virtual serial port on the local system, but if emacs can do it directly, without that, ...
0
votes
1answer
39 views
macro execution with i-search fails under Linux and succeeds under windows?
Imagine you've got file with FirstName|LastName| like this :
John|toto|
Hanz|titi|
and want to put the first names at the end of the lines (just an stupid exemple). You may use Macro Recordind for ...
2
votes
0answers
43 views
How do I link an email from a webpage to mu4e?
So when I press a link in, for example firefox, it open Emacs mu4e "Compose email" with the receiver attached.
Iām on Linux.
1
vote
1answer
244 views
Labelling LaTeX sub-equations in org-mode
How to achieve subequation numbering a,b,etc like https://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics#Subordinate_equation_numbering in org-mode. I tried using the LaTeX snippet as it is and ...
1
vote
0answers
118 views
Problem saving (C-x C-s) files on a NFS drive with emacs 24/25
Starting with Emacs 24 (using various different versions of Ubuntu and Linux Mint), if I open a file on an NFS drive, modify it and attempt to save it C-x C-s, I get the message of: Saving <...
3
votes
2answers
683 views
Set a title to an Emacs instance running in a terminal
On Ubuntu, I usually open more than one Emacs instances in the same time (for frontend and back development). These instances always by default take the name "Terminal" as a title as shown on this ...
2
votes
1answer
61 views
xclip-mode returns “Unknown upattern” and does not work
The command M-x xclip-mode returns the following info in *Messages*:
Eager macro-expansion failure: (error "Unknown upattern `(quote pbpaste)'") [2 times]
Xclip mode enabled
I cannot yank text from ...
2
votes
0answers
182 views
Adjusting to screen resolution changes on GNU/Linux/ubuntu/gnome
I'm running emacs 26.1 on ubuntu 18.04 on a Dell laptop with a high-resolution display. It works very well in that configuration. It also works very well when the laptop is plugged into a lower-...
1
vote
1answer
86 views
Problem with file-exists-p function on Linux running as VirtualBox guest
Until this morning, my emacs setup (running on Arch Linux as a VirtualBox guest) was working absolutely fine. Then for no obvious reason I started experiencing the following issue:
If I opened an ...
1
vote
1answer
166 views
Dired: File open using external viewers, based on filetype, and without prompting
When I hit RETURN on a filename in Dired, I'd like Emacs to automatically do one of several things, depending on the file's type:
1 - If it's a text file, I'd like to open the file in a new buffer in ...
2
votes
0answers
94 views
Disable LINUX mode in Emacs
I am using Emacs 25.3 on Mac and when I try to open some linux kernel code, the behavior is different as below:
I cannot simply open a C file, but I am prompted for arch each time.
Occasionally, ...
0
votes
1answer
336 views
Setting up Emacs/AUCTeX viewer
I have installed AUCTeX, it compiled a test file OK, but I can't view the output.
I get " Cannot get Evince viewer ...". Xviewer, should be the analogue in my distro, I think (I have not way to check ...
4
votes
2answers
1k views
Dired: Open files by external application in Linux
I want to open several types of files in Dired by different external applications.
For example:
.doc files with LibreOffice
.pdf files with evince
.jpg files with pinta
etc...
How do i configure ...
3
votes
0answers
40 views
string-rectangle command pollutes kill-ring after upgrade to Emacs 25
In Emacs 24 I used to have a workflow for inserting a string into multiple lines at once:
Go to the desired position in the first line.
Press C-Space to place the mark.
Go to the last line (while ...
1
vote
0answers
355 views
emacs 25.3 not rendering correctly, especially after resize
The problem is when emacs starts, the right 1/4 of the window doesn't repaint and shows whatever window was behind it.
Also on resize, sometimes the font and the cursor get way too big and the ...
8
votes
4answers
2k 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 ...
1
vote
0answers
593 views
From Org code block on *nix run (Power-)Shell (scripts) on MS Windows via SSH
To better integrate my Windows DevOps into Emacs Org-mode, I'd like to use my local emacs as an IDE for a remote Powershell.
SSH was easily setup, from Linux shell ssh I can successfully login to a ...
6
votes
0answers
508 views
How can i make Emacs use the System input method and Language?
Problem :
I am using Emacs for general text typing and editing outside my Programming. This requires me to type in local languages of India ( specifically Hindi, Malayalam and Tamil ).
I am on ...
1
vote
0answers
44 views
(To file an emacs bug report) are there services out there that let's me ssh to a clean GNU Linux machine
I want to file a bug report about emacs.
From what I learnt, bug reports relating to GNU/Linux
are given precedence over more exotic OS's like MacOS.
I can spin up an ubuntu instance in 10 seconds ...
8
votes
2answers
622 views
xclip hangs shell-command
I like to use the xclip utility to capture the output of commands on the clipboard. However, when I try to use it with shell-command it seems to hang.
In a "normal" shell I can run a command such as ...
1
vote
0answers
44 views
How to set eshell's ls command to different program in different OS?
Since result of /usr/bin/ls is more neat compares with eshell/ls when filenames contain non-lattin Unicodes. I add an alias in ~/.emacs.d/eshell/alias, which makes eshell use /usr/bin/ls as default:
...
1
vote
1answer
127 views
What does emacs want for non-ASCII keys
Under Debian-Jessie, Emacs recognizes qualified special keys, e.g. C-<home>, in an X terminal (e.g. mate-terminal) but in TTY it does not.
I have corrected this by making a replacement keymap, ...
3
votes
2answers
2k views
can not access melpa packages- hung up at Contacting host: elpa.gnu.org:80
I am trying to access the melpa packages but when typing:
package-refresh-contents
emacs gets hung up at: "Contacting host: elpa.gnu.org:80"
I am completely new to emacs and fairly new to Linux and ...
2
votes
1answer
113 views
keybinding to switch to specific application
I'm running Emacs in a GUI, and I like having a keybinding that quickly switches me to a terminal. Yes, I know there's eshell, term, and shell in Emacs, but I still prefer a dedicated terminal ...
1
vote
2answers
1k views
How to build Emacs for an embedded ARM Linux system
I am trying to build Emacs for an embedded ARM Linux system. Unfortunately, it is proving to be more difficult than I anticipated. I have the device mounted at /mnt/my_device. Now I am not sure ...
2
votes
2answers
2k views
Emacs doesn't open a new frame
Emacs does not start in a new frame.
If I'm in a terminal running Bash and enter $>emacs the editor is opened inside this terminal, and produces exactly the same behavior as $>emacs -nw. I have ...
0
votes
0answers
79 views
how to debug who move cursor
I have very annoying problem, after I run M-x compile time to time
cursor jump from middle of buffer to the first line.
I want to find out culprit (I found mode who responsible for this,
but I want ...
4
votes
1answer
713 views
How to make GUI Emacs use all available space when running maximized on linux?
GUI Emacs running maximized on my Linux (centos7+kde) is not using all the available space leaving some space around the borders, specially at the top and the bottom.
Sample of GUI emacs running "...
1
vote
1answer
651 views
Second meta key
On my keyboard layout, pressing some key combinations (like M-c as C is where R is on the American keyboard layout) can be quite tricky.
This is why I want Alt Gr or the context menu key to be a meta ...
3
votes
3answers
2k views
Error (initialization): User … has no home directory
I just installed GNU Emacs 23.1.1 on a new machine and copied my ~/.emacs and ~/.emacs.d/ from another machine where I'm running emacs 25.1.1.
When I launch emacs it writes Error (initialization): ...
0
votes
0answers
1k views
How I can download the latest version of Emacs on Linux Mint 18.1?
Linux Mint 18.1 (64 bit).
I install Emacs by Software Manager.
It download Emacs version 24.5. But the latest version is 25.1.
How I can download the latest version?
2
votes
0answers
276 views
Flycheck c/c++-clang check linux kernel headers
Currently I am working with the linux kernel, but I am struggling trying to check my syntax using flycheck, I already added the path of the headers in the clang-path but it is not enough. Does any of ...
11
votes
4answers
10k views
On Linux why should one choose Lucid over Gtk gui for emacs?
I run Ubuntu 16.04. On searching Ubuntu Software app for Emacs I am presented with two guis, Lucid and Gtk.
Which one should I choose and why?
0
votes
0answers
174 views
flyspell & hunspell: 'flyspell-buffer' is not marking words … sometimes
I try to get flyspell working with hunspell on Linux with German de_DE_frami dictionary from LibreOffice Extensions. The setup works ... more or less. (English dictionarys work perfectly fine.)
But ...
1
vote
0answers
107 views
small font for programming wanted [closed]
I have a low-res screen (1366x768) and therefore are searching for a small font which is clearly readable.
Till now I used this font:
-misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
I had ...
2
votes
0answers
53 views
mode-line-inactive after system window loses focus
When a system/X11 window (frame) with Emacs loses focus, how can I make its mode line become mode-line-inactive? It stays active, keeping the standard mode-line look/faceā¦
Shouldnāt it be the default?...