Questions tagged [linux]
for Emacs and GNU/Linux operating system-specific issues about compiling, installing, configuring, running, editing, and debugging.
140
questions
0
votes
1
answer
64
views
C-k in emacs locks up entire ChromeOS
Anybody here use ChromeOS i.e., Chromebook?
Well I find that all I need to do in emacs is hold down C-k munching up line after line, for oh, 10 seconds, and voila, the entire mighty ChromeOS operating ...
0
votes
0
answers
28
views
Imitating `emacs /path/to/folder/` behavior with emacs client for project configuration file recognition
To save some time and flashing white screen at startup, I use the emacs daemon and launch a emacs client. However, I have the following project-based workflow that seems to require that I use the non-...
0
votes
1
answer
85
views
emacs M-x & shortcuts
I have been using emacs extensively on Linux for decades now, but could never get shortcuts to work, and never bothered with it.
However now, since I get autosave data due to my recent setup, I need ...
0
votes
1
answer
34
views
Can Emacs newer than 26.3 in Linux accept custom toolbar icons?
I have developed an Emacs library that includes a toolbar with custom icons. In my preferred configuration I put my icons under the user home directory so that this doesn't change if Emacs is updated. ...
0
votes
0
answers
51
views
How do I get-install an older Emacs in Linux
For Linux I use Ubuntu and have always added Emacs from its current repository by apt-get install emacs. I have encountered a bug in the latest version and would like to install different intermediate ...
0
votes
0
answers
104
views
Interacting with Okular (backward search)
I use Auctex to edit my LaTeX files. I've configured Auctex to use Okular as my PDF viewer, and I've configured Okular to use Emacs (emacsclient) as its editor.
When I compile a source file with C-c C-...
1
vote
1
answer
63
views
Why does shell-mode truncate ps output?
Startup a fresh GTK emacs with no config with emacs -Q. Then run M-x shell. Then at the prompt:
$ ps -ef
Long commands will be truncated to the frame width, like this:
root 526315 2 0 15:...
0
votes
1
answer
96
views
AUCTeX cannot find a working TeX distribution (again)
This is DIFFERENT from many other questions about "AUCTeX cannot find a working TeX distribution" because the TeXlive binaries ARE in my Emacs' "PATH" environment variable.
I have ...
0
votes
1
answer
134
views
How to use Emacs on MS Windows for UNIX-like commands?
I tried running find-name-dired from one of my dired buffers. I got this:
find . "(" -iname "*.cc" ")" -exec ls -ld {} ";"
File not found - "*.cc"
...
0
votes
0
answers
28
views
Creating a portable html file using Org-reveal
Description of problem
I am new to Emacs and want to write a presentation using Org-reveal that can be opened on other computers. I have read that I need to create a portable file using #+OPTIONS: ...
1
vote
1
answer
120
views
Picking emoji fonts in Emacs?
How to set the font used for emojis in Emacs?
More specifically, how do I set it to Noto Monochrome Emoji Font?
https://github.com/googlefonts/noto-emoji/tree/main/fonts
https://fonts.google.com/noto/...
2
votes
0
answers
187
views
Is there a way to enable OpenType font features (specifically for Monaspace)
I'm currently running Emacs 28.2 on Debian 12 (Doom core v3.0.0-pre, Doom modules v23.12.0-pre). I have checked for harfbuzz support and have ligature.el installed.
I recently found Monaspace, and ...
0
votes
0
answers
174
views
Erratic font behavior after upgrading from 27.1 to 29.1 related to --no-x-resources
After upgrading Emacs from 27.1 to 29.1 yesterday (both compiled from source without configure settings except for --prefix) I am seeing erratic behavior of the fonts.
The issue vanishes, when I start ...
0
votes
1
answer
69
views
Emacs Save As with external File Manager Popup -(Linux)
On some of my Linux machines, when I file-save-as, then the system file manager pops up and I can easily select destination.
On other Linux Machines, I only get the emacs internal buffer save-as, ...
0
votes
0
answers
418
views
New Frame function fails to size the new frame correctly and prints a Gtk-CRITICAL message. Is this the return of an old bug?
I am using Emacs 29.1. After upgrading Linux to Ubuntu 23.04 the emacs create new frame function (C-x 5 2) seems broken.
What happens: when I create a new frame, it shows up so tiny (15x7) that the ...
0
votes
1
answer
67
views
Is there a cross platform way of accessing the GUI clipboard from emacs lisp?
I run emacs with a common configuration on osx and linux. I have some custom functions that need to get access to the GUI clipboard. I find interacting with the clipboard a bit of pain - so I've ...
0
votes
0
answers
72
views
How to completely disable drag-and-drop of file in X11 Emacs?
This issue irks me for a long time... I use Emacs under X11 + KDE (plasmashell + kwin_x11), and Emacs GUI window always robs the dragging event when I am dragging a file from file manager into the ...
2
votes
2
answers
3k
views
How to install emacs29 with X11 support?
After installing emacs 29 with yay emacs29-git now on startx I get:
You are trying to run Emacs configured with the "pure-GTK" interface under the X Window System. That configuration is ...
0
votes
1
answer
55
views
Why is my simple use of shell-command to change a global keybinding in Linux not working?
I want to be able to change a global keybinding by calling an Emacs function.
The command in question is:
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Super>Tab']&...
0
votes
0
answers
268
views
How install Emacs 28 from OFFICIAL REPOSITORY?
Linux Mint 21.3
I installed Emacs like this:
apt-install emacs
It's success installed ... but it's version 27.
But I want to install Emacs 28... from OFICIAL REPOSITORY.
Is it possible?
0
votes
1
answer
67
views
Advanced key reconfiguration under Linux
I'm transitioning to Emacs and trying to reconfigure the layout in a way that reduces the strain on my fingers. One thing I would like to have is the following behavior, which I was told is impossible ...
1
vote
0
answers
346
views
Display AVIF images?
I enabled image-use-external-converter, and I added avif to image-file-name-extensions and AVIF to imagemagick-enabled-types. However, that doesn't do the trick.
I would like AVIF files to render in a ...
0
votes
1
answer
38
views
Compare recursive flattened/"branch view" list of files between two directories in emacs/linux
I have two folders, "old" and "new". The "new" folder includes files from "old" that have been copied into subfolders by a program.
[-] Test
|--[-] New
| |--...
1
vote
2
answers
3k
views
How to Install Emacs latest stable release?
I'm trying to install spacemacs on my laptop with elementary os. With apt the latest version I get is 26.3 and I don't understand why because it seems to be far away from the most recent stable ...
0
votes
1
answer
71
views
Building emacs for Alpine Linux info/dir target failure
I am trying to build emacs for Alpine Linux by following the instructions.
After installing the relevant packages I run
configure --with-x-toolkit=lucid --with-mailutils --enable-gcc-warnings --with-...
4
votes
2
answers
448
views
How to see total line number of a file in emacs Mode line?
I really need this but couldn't figure out how to do it.
Let's say I open a file in a new buffer which has 200 line of code.
Now I'm in the beginning of my file in line 1. And Mode line showing All(1,...
1
vote
2
answers
298
views
Why is my C-. keystroke getting captured?
I have a strange problem that I've observed using GNU Emacs 28.1 on gnome + arch linux. I have a commands bound in my .emacs to C-, and C-., which I wrote a long time ago to jog up and down the buffer....
0
votes
1
answer
262
views
How to open serial-port with root privileges
When I try to open /dev/ttyUSB0 with serial-term, following permission error shows:
Opening serial port: Permission denied, /dev/ttyUSB0
I know I can add my user to a group that has access to /dev/...
0
votes
3
answers
589
views
Why can't I type things such as "?" and "/" in Emacs with my macOS running Brazilian Portuguese input but they do work outside of Emacs?
I have been using Emacs on a NixOS (Linux) machine running GNOME as a Desktop Environment. The hardware interface of this system is an American keyboard. Since I am Brazilian, it was necessary for me ...
0
votes
3
answers
68
views
After package installation, why Emacs kept retrieving an error message on "Creating directory: Operation not supported" subsequent to normal behavior?
I was using this init file on a NixOS machine.
It is important to note that parts of the file were written with use-package and other parts were a legacy from the classic imperative installation of ...
2
votes
3
answers
256
views
How can I run additonal linux commands after compiling a latex file
I want to run the following commands when emacs compiles a latex file.
FILE="main.tex" # currently opened buffer in the emacs
pdflatex -shell-escape -shell-escape -jobname=main_temp $FILE
...
1
vote
1
answer
449
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 ...
3
votes
1
answer
309
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 ...
0
votes
0
answers
58
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 ...
0
votes
1
answer
333
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"...
1
vote
1
answer
402
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&...
0
votes
1
answer
113
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 ...
1
vote
1
answer
1k
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 ...
0
votes
0
answers
67
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 ...
0
votes
0
answers
65
views
Duplicate headlines 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 ...
0
votes
0
answers
250
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 ...
2
votes
1
answer
193
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 ...
6
votes
1
answer
3k
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,
(...
1
vote
0
answers
2k
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....
0
votes
1
answer
614
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 ...
0
votes
1
answer
479
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-...
0
votes
1
answer
271
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 ...
1
vote
0
answers
352
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 ...
3
votes
2
answers
2k
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
1
answer
214
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 ...