All Questions
23,965
questions
0
votes
0
answers
31
views
Cannot input some characters using linux compose key in Emacs GUI
I'm trying to write some exotic characters, like ĵ, ĉ or ŭ. I am using a qwerty US keyboard layout on a GNU linux machine, and I set up my compose key with setxkbmap -layout us -option compose:ralt. ...
0
votes
0
answers
21
views
Access current theme face attributes in init.el
I have these lines in my init.el:
(load-theme 'wombat)
(deftheme wombat)
...
(defvar my/default-cursor-color (face-attribute 'cursor :background t))
I want the variable my/default-cursor-color to be #...
0
votes
1
answer
21
views
Org mode LaTeX preview environmets
Is it possible to preview in org mode also environments
\begin{theorem}
hello world
\end{theorem}
I tried but I can't get the Theorem 1.2.3 header.
0
votes
0
answers
12
views
Non-filling of lines and paragraphs when using docstrings
I am having a problem with docstrings because everything is written as verbatim without paragraph or line filling. The following for instance puts Malicious and Functionalities on two separate lines.
...
0
votes
1
answer
24
views
Is it possible to mimic sed's "change line" feature?
I'd like to write an elisp function that allows me to replace any line in my buffer matching a regex pattern <PATTERN> with text <TEXT>. In other words, if line N matches <PATTERN>, ...
0
votes
1
answer
17
views
Insert hyperlink with text displayed instead of actual address
Is it possible to insert a hyperlink to a website in a buffer as one can do with texinfo @url{http://ftp.gnu.org/gnu, GNU ftp site} where text is displayed instead of the actual address? My buffer in ...
0
votes
1
answer
22
views
How to control inter-paragraph spacing in org-mode?
After reading Org Mode Syntax, my understanding is that blank lines in the content section under a heading are used syntactically to separate paragraphs and that each blank line "belongs" to ...
0
votes
2
answers
29
views
(Un-)bind keys for org-agenda in use-package
I want to unbind some keys in the org agenda display with use-package. I did the following:
(use-package org
:ensure t
:pin gnu
:config
(define-key org-agenda-mode-map (kbd "<C-S-right&...
0
votes
0
answers
10
views
Can the display of describe-function, describe-variable be advised or tracked in some way?
I want to link additional topics to the search terms by adding links to the answer if the item is linked with other related terms.
For instance if I do a search for the function symbol, I want intern, ...
0
votes
1
answer
24
views
Hyperlinks to webpages in a named buffer
I can add hyperlinks to webpages in the docstring. But is it possible to do the same when writing text in a named buffer?
(defvar msg "URL `https://www.gnu.org/proprietary/proprietary.html'"...
1
vote
1
answer
22
views
What is the optional `BUFFER` argument to `describe-symbol` for?
I'm trying to add additional contextual help information to describe-function, describe-variable etc, and I notice that describe-symbol has the option to take a buffer as a parameter.
When I try (...
0
votes
0
answers
28
views
Docstrings with links to webpages
Can docstrings include links to websites and how can one do it? I would like users to read further information should they wish to do so.
0
votes
1
answer
24
views
:documentation void-function error
The following backtrace problem in being produced but cannot identify the problem correctly.
Debugger entered--Lisp error: (void-function :documentation)
(:documentation (concat "Version and ...
0
votes
0
answers
21
views
Export buffer with text properties
How could I go about saving the contents of a buffer to a file in such a way that the dump includes the text properties, in some form?
I don't care what format the resulting file is in. It needn't be ...
1
vote
0
answers
14
views
Python development using Docker interpreter
I would like to use Spacemacs for Python development. I've used Emacs for years and still use it for org-mode and other note taking.
At work we develop using Docker based interpreters. This means that ...
0
votes
1
answer
19
views
Problem With Linux Mint Cinnamon Display of Lines Numbers and Mode Line
Addendum added to respond to the answer and subsequent comments of db48x
A few months ago, I migrated from Fedora to Linux Mint 20 (Cinnamon), and then installed Emacs v26.3 in Mint. As shown in the ...
0
votes
1
answer
16
views
How to access to a location in terminal through external link in org file?
I use org-mode and I often copy-paste path in a note file. Is it possible to have link or similar so it open a new terminal and go directly in the location indicated by the path.
I don't know much ...
0
votes
1
answer
11
views
org-agenda stuck displaying last file in org-agenda-files list
For some reason, (after recently upgrading packages), running org-agenda via C-c a and then selecting a view from the dispatch buffer (such as a Agenda for current week or day) just shows me a buffer ...
0
votes
1
answer
32
views
Making and writing to new buffer
Have been playing for some time with buffers. With this code I can make a new buffer called Corona and insert some text in it. Now I would like to pass the buffer name to bufr-message rather than ...
0
votes
0
answers
25
views
`org-babel-params-from-properties' with a non-nil `no-eval' still evaluating functions
I may be misunderstanding how the no-eval argument works, which is passed to org-babel-parse-header-arguments, and then finally org-read as inhibit-lisp-eval; it seems functions I'm using to pass the :...
1
vote
1
answer
29
views
Bookmark Plus and pdf-tools/pdf-view error
I've installed Bookmarks+ from quelpa recently, and everything was working fine until I made a minor tweak with my pdf-tools config. Now I cannot jump to bookmarks of .pdf files from any buffer, ...
1
vote
1
answer
47
views
Where can I find org-table formatting documentation?
I'd like to do some formatting on org-tables than I'm using. For example, make this table :
|----------------+----------+---------+---------+---------|
| Russia | 12000000 | 1700000 | 4950000 |...
0
votes
1
answer
23
views
How to fix/restore org-metaright/metaleft behavior after upgrading org-mode (9.5)
Q: how do I fix/restore the behavior of org-metaright and
org-metaleft after an org-mode upgrade?
After upgrading to Emacs v. 28.1 (and therefore org-mode v. 9.5.2)
via Fedora's package manager, org-...
1
vote
1
answer
22
views
Enabling --debug-init from within .emacs
Emacs can be started with the -debug-init command-line option. But how can I enable the command line option from within my .emacs file?
1
vote
1
answer
32
views
How can I use `add-to-list` to add multiple elements to a list value of a variable?
Is this the way to use add-to-list with multiple entries?
(add-to-list 'auto-mode-alist
'(("\\.f\\'" . fortran-mode)
("\\.F\\'" . fortran-mode)
...
1
vote
1
answer
32
views
org-export options are off
My org export options become inactive/off. Like the picture below:
compare to its previous form:
And the export is not functional. I get the following message:
Invalid face reference: org-dispatcher-...
0
votes
0
answers
21
views
Mu fails to install and Mu4e fails to start: /usr/local/opt/emacs not present or broken
I upgraded mu and emacs and now mu4e stopped working.
I removed Emacs with:
brew uninstall --force emacs
brew uninstall --force homebrew/cask/emacs
and mu with:
brew uninstall mu
Then I installed ...
2
votes
2
answers
43
views
org-babel ':wrap export latex' inserts colons into resulting tex document
I rewrote the question using a minimal example. My previous post didn't include the code required to import NumPy and other libraries.
I'm trying to export the python output to a LaTeX export block. ...
0
votes
1
answer
55
views
org mode tables slowed down by evil mode
I am trying to create a table in org-mode like that (/ is where my cursor is)
| this is a test | foo | bar |
| ---------/---- | --- | --- |
If I now press enter, emacs hangs and I have to interrupt ...
0
votes
2
answers
48
views
How to fix byte compiler warnings for "Unused lexical variable" in a macro?
I have a macro and a function which uses it:
(defmacro oauth2-auto--query-case (&rest cases)
"Handle HTTP queries based on the keys present in ‘query-alist’.
‘query-alist’ is a free ...
0
votes
1
answer
30
views
The latest Emacs initialization hook
I am currently running Emacs as a desktop with EXWM.
And I am trying to run some apps on startup to see them in a EXWM's systemtray:
(defun run-auto-start ()
(start-process-shell-command "...
0
votes
1
answer
16
views
Passing var or const to a function
I have a function called put-docstr that takes a string. I can set the string using
defvar or defconst. Not sure if I should quote the symbol when using it.
Thus like this
(put-docstr #'typex-...
0
votes
0
answers
11
views
Any hints on how to connect org-onenote to MS OneNote?
I have recently tried to use org-onenote* for uploading some Org Mode notes to MS OneNote. Somehow my e-lisp-fu is not strong enough, I have misunderstood the terse documentation, or I am just too ...
0
votes
1
answer
23
views
Keybindings changed. C-h k has the wrong info. What did I do wrong?
I changed the keys for a slime function.
I changed slime-eval-last-expression-in-repl from C-c C-j to C-x C-e.
The mini buffer confirms the change:
But when I look at the help function, it says that ...
0
votes
0
answers
17
views
Convert a time interval to days or weeks with Calc
How can I convert a time interval, say 10000min, to a decimal number of days or weeks in Calc?
I've seen that I can do ' 10000min/day u b (following this answer) to get the decimal number of days ...
0
votes
1
answer
35
views
Fallback font for specific face
I'm trying to set a fallback font for variable-pitch face.
More specifically, my current setup is:
Default font set to JuliaMono with size 15 via (set-frame-font "JuliaMono 15" nil t).
...
0
votes
0
answers
13
views
To create lockfiles outside of the working directory
I want lockfiles to be created outside of the working directory, and so I have added the following part into my init.el, right from the manual:
;; https://www.gnu.org/software/emacs/manual/html_node/...
0
votes
0
answers
19
views
Why the size of the scrollbar is changed when I scroll the file?
I have a test file with 25 lines. When I scroll it with mouse up and down, the size of the scrollbar changes, for some reason. Is it a known issue? Is it possible to fix it?
Here is an animated GIF:
...
0
votes
1
answer
11
views
org capture auto id insert %a
When creating a capture, org capture will auto insert a link which link to the location where the capture action happens, if the capture template contains "%a".
e.g: I'm in heading A, and ...
2
votes
4
answers
69
views
Reading Common Lisp Source Code Inside Emacs?
I think emacs is just brilliant. The help functionality with C-h is extremely useful.
Recently, I started coding in SB Common Lisp.
It would be very useful if I could search the definitions of ...
1
vote
3
answers
118
views
emacs in gnome-terminal on ubuntu 20.04 - Stop the trackpad from bouncing my cursor!
While typing, every time I hit the trackpad in just the wrong way, my cursor jumps from one point to another in my emacs buffer. This is the scroll motion that occurs as a result of two fingers on ...
0
votes
0
answers
11
views
Using emacs magit with gitmoji commit hook
Is there a way to use emacs magit with gitmoji-cli commit hook?
Such hook can be installed via gitmoji -i
Currently, magit shows nothing and waits forever, probably because the hidden gitmoji-cli is ...
0
votes
1
answer
19
views
How to force `find-file` to visit the existing frame of an opened file
The below function creates a new instance of the file myfile.txt (regardless of if myfile.txt is already opened or not).
How to force emacs to use the existing frame of that file (if any)?
(defun ...
0
votes
1
answer
26
views
Given a key, find command that Emacs binds by default
If I've created custom keybindings, possibly overriding some Emacs default keybindings, is there a way to determine what command a given key would be bound to by default (i.e. if I hadn't overridden ...
0
votes
0
answers
18
views
Silence eval-last-sexp message in echo area when using overlay messages
When using either eros, or lispy with lispy-eval-display-style set to overlay, I see the expression result in both an overlay and the echo area:
I'd like to only see the overlay. Is there a way to ...
0
votes
1
answer
35
views
How to include variables within #+INCLUDE:?
In my init file, all the paths that I use are stored at the beginning of the file with a series of lines like this:
(setq personal-path "PATH")
Then I can use them like this:
(set-register ?...
1
vote
1
answer
26
views
Emacs makes my files not exist in Parcel
new Emacs user (on Windows) here!
So far Emacs looks really cool!
I'm developing website using Parcel and every time I save my main .html file with Emacs it breaks my development server. HTML file I ...
0
votes
3
answers
41
views
Handling empty function optional argument
This function starts a new named shell buffer. How can I handle the case where bufrnm set by interactive in empty?
(defun galaxy-shell (&optional bufrnm)
"TODO"
(interactive "...
0
votes
0
answers
15
views
Jumping to a specific byte (white space included)
How can I move the point to a specific byte (not a char), as I understand goto-char doesn't consider space characters. But in a large file I need to find to a specific byte, taking into account also ...
0
votes
1
answer
24
views
Handling optional arguments
This function makes a new named buffer that can run shell commands. But it only works properly when no argument is passed. When an argument is passed or set through the interactive clause, I would ...