Questions tagged [linux]

for Emacs and GNU/Linux operating system-specific issues about compiling, installing, configuring, running, editing, and debugging.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Modifying local Google Drive files from Emacs

Recently I've moved from MS Windows to Linux Mint. While on windows, I used to have a code of backup in my init.el file, so that all emacs backups were saved into my local folder DRIVE, that was ...
user avatar
3 votes
1 answer
233 views

How can I have a bracket guide when programming?

What I am looking for is a guide to show what area of the code a set of brackets covers. I am not referring to highlighting the match between parentheses or brackets but instead outlining the field ...
user avatar
  • 90
0 votes
0 answers
21 views

Z-Order of Emacs Client Not Layered Top-Most

System & related settings: Fedora 35 (using Cinnamon Desktop) Emacs 27.2 focus mode: "sloppy" with "raise-on-click" disabled Contrary to all other applications, including the ...
user avatar
  • 297
0 votes
1 answer
27 views

How to remove emacsclient and emacsclient.emacs from linux(debian)

I have installed emacs using apt. I have already tried: apt purge emacs apt purge emacs-gtk When I tried to remove emacsclient using apt. It says "E: Unable to locate package emacsclient"...
user avatar
1 vote
1 answer
81 views

Cannot enable FACE attributes with (custom-theme-set-faces!)

config.el (custom-theme-set-faces! 'doom-ir-black '(mode-line :foreground "blue") ;;'(mode-line :foreground t) ;; also doesn't work ;;'(mode-line :foreground "#000000&...
user avatar
  • 90
0 votes
1 answer
48 views

Different behavior between M-! and a terminal?

I'm writing a major mode to interface with a popular but clunky Monte Carlo program. I've also written a script that makes the interface a little more tolerable, and have written the following simple ...
user avatar
  • 113
0 votes
1 answer
192 views

Auto-detect system dark mode or light mode and select themes based on that

Is there a way on linux (Ubuntu 20, Gnome) to detect changes in system's dark mode vs light mode and change emacs themes to a dark theme or light theme that I specify? I see this question Change theme ...
user avatar
0 votes
0 answers
42 views

Get notified through Diary or Org-Mode even when Emacs is closed?

I am using Emacs on my Pine Phone running Mobian (Debian with a phone shell). What I am looking to do is set up Diary or Org-Mode to set up a calendar and get notifications when Emacs isn't running. I ...
user avatar
0 votes
0 answers
52 views

Duplicate headllines in org mode in CentOS

CentOS 7 Emacs 27.1 Magit Here my folder with org mode files: I open current.to.do.org and it success open. As you can see the first headline is ANDROID and last headline is TESTING. Nice. Now I ...
user avatar
  • 3,435
0 votes
0 answers
65 views

Emacs can't see system fonts on Debian

I have small problem with fonts' availability in Emacs on Debian 10. I have downloaded 'Fira Code' fonts and correctly installed them. They are exists on fc-list and are available in other programs ...
user avatar
1 vote
1 answer
91 views

.svg not exported through org-export + paragraphs not separated after newline

I have been constantly trying to render a logo.svg found in my custom title-page (included in #LATEX:) to match our university title-page for academic writings, but have unfortunately not had success ...
user avatar
6 votes
1 answer
1k views

How to get the PATH from the SHELL

When launched at system start-up, the Emacs daemon doesn't pick up modifications to the PATH introduced by shell initialization scripts. Emacswiki suggests to use this function to update Emacs' PATH, (...
user avatar
  • 1,414
1 vote
0 answers
1k views

How to install Emacs 26 on CentOS 7?

CentOS Linux release 7.9.2009 (Core) To install Emacs on CentOS I use this: sudo yum install epel-release sudo yum install emacs Nice. But the problem is that... it install old version of Emacs = 24....
user avatar
  • 3,435
0 votes
1 answer
338 views

How to get package `dired-icon` to show icon images in Dired?

I installed the package dired-icon and restarted Emacs. I then ran M-x dired-icon-mode But no icon shows up in Dired mode and in the minibuffer the following message is shown: Opened text-plain.png ...
user avatar
  • 3,435
0 votes
1 answer
201 views

Tramp hangs indefinitely when using doas on Linux

Tramp works fine when I try to edit with sudo or ssh, but when I try to edit with doas it will hang (while also maxing out my cpu). Here is some tramp output: backtrace() tramp-signal-hook-...
user avatar
  • 47
0 votes
1 answer
129 views

User emacs has no home directory

I am an emacs newbie running emacs doom on Linux. I am learning how to use traditional emacs in my free time and have an emacs config file that I want to test out. I launch my traditional emacs by ...
user avatar
1 vote
0 answers
265 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 ...
user avatar
  • 3,435
3 votes
2 answers
1k 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 ...
user avatar
1 vote
1 answer
130 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 ...
user avatar
2 votes
1 answer
139 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 ...
user avatar
  • 121
1 vote
0 answers
30 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.
user avatar
  • 7,179
0 votes
0 answers
29 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 ...
user avatar
1 vote
1 answer
146 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. ...
user avatar
1 vote
1 answer
42 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 ...
user avatar
  • 21
0 votes
1 answer
37 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
user avatar
1 vote
0 answers
56 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 ...
user avatar
  • 111
1 vote
1 answer
743 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:...
user avatar
  • 111
1 vote
1 answer
126 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 ...
user avatar
0 votes
0 answers
193 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 ...
user avatar
  • 273
2 votes
0 answers
110 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, ...
user avatar
0 votes
1 answer
49 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 ...
user avatar
  • 111
2 votes
0 answers
49 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.
user avatar
  • 133
1 vote
1 answer
541 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 ...
user avatar
1 vote
0 answers
156 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 <...
user avatar
4 votes
2 answers
1k 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 ...
user avatar
1 vote
1 answer
87 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 ...
user avatar
1 vote
0 answers
438 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-...
user avatar
1 vote
1 answer
119 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 ...
user avatar
2 votes
1 answer
251 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 ...
user avatar
  • 1,578
2 votes
0 answers
109 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, ...
user avatar
10 votes
1 answer
1k views

How does emacs respond to Unix signals?

I'd like to know how GNU Emacs responds, by defaults, to such signals as HUP and USR1. Is this behavior documented in any manual? If so, where? If not, is there a place I could look in the source ...
user avatar
0 votes
1 answer
413 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 ...
user avatar
  • 521
5 votes
2 answers
2k 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 ...
user avatar
  • 2,039
3 votes
0 answers
44 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 ...
user avatar
  • 201
1 vote
0 answers
431 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 ...
user avatar
  • 111
8 votes
4 answers
3k 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 ...
user avatar
1 vote
0 answers
789 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 ...
user avatar
6 votes
1 answer
654 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 ...
user avatar
  • 161
1 vote
0 answers
46 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 ...
user avatar
9 votes
2 answers
1k 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 ...
user avatar
  • 193