All Questions
21,057
questions
0
votes
0answers
50 views
+100
Emphasize text snippets in source blocks
If one sets org-src-fontify-natively to t org source blocks are fontified according to the associated major-mode. That is fine.
But, is it possible to emphasize text snippets within the source blocks, ...
1
vote
1answer
25 views
What are these underlines shown for whitespace at the end of some lines?
The following screenshot shows Emacs 26.3 (GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian) editing a Markdown file:
Note that on some lines of ...
0
votes
0answers
24 views
How can i activate emacs-binding in doom emacs?
I am using doom emacs. But I want traditional emacs key binding. I've heard several people that emacs key binding becomes way of life and if somebody takes my key binding away, I cant express myself.
...
0
votes
0answers
19 views
Search on org-mode tags directory-wide?
I have a large set of my own tags that I've added to org-tag-alist that I use liberally to tag headings throughout my org files. I would like to search throughout my org directory (recursively) on a ...
0
votes
1answer
29 views
Access Table data from from elisp using headline ID
I have a bunch of recipes under different headline, and each have an ingredient list specified as a table.
I would like to access that table as an list in a src block using the headline id, same as if ...
2
votes
2answers
20 views
Sort lines omitting a prefix of a certain length?
Many of my python files have an import section that looks like this:
from datetime import datetime, timedelta
from typing import Callable
import numpy as np
import pandas as pd
I'd like to sort ...
1
vote
1answer
41 views
How to type superscript Roman numeral in Emacs, e.g., by using TeX input method?
One can type normal Roman numerals by using C-x 8 RET. For example, to type Ⅲ one use C-x 8 RET 2162 RET. Furthermore, one can type superscript numbers, English letters and Greek ones by using the TeX ...
0
votes
1answer
41 views
Issue with macro and `buffer-name`
I want to write a macro that makes a diffpdf before and after some changes in my LaTeX file (that would be compiled twice by pdflatex).
I tried:
(defmacro with-diffpdf-after-changes (&rest body)
...
0
votes
0answers
13 views
Format links or dates context sensitive in org-mode headings?
In org-mode I use headings with different font sizes decreasing with the # in org-level-#.
In the following Examples, the font size is in brackets and size 5 > size 4 etc.
Example:
* Heading lvl 1 ...
0
votes
1answer
50 views
Creating a new text file in a directory using org-capture
Following this response: Org-Mode - How do I create a new file with org-capture https://stackoverflow.com/questions/11902620/org-mode-how-do-i-create-a-new-file-with-org-capture?
I am trying to make ...
0
votes
1answer
22 views
How to create a function to lauch org-capture with a selected template?
Let's say my capture template is bound to 't':
(defun my/captureTemplate ()
(interactive)
(org-capture "r")
This won't work as it will show me the whole list of potential templates to ...
0
votes
0answers
12 views
Send string to a fully functional REPL in Emacs on Windows?
Summary. Is there a way to get fully functional REPLs on Windows running in Emacs. I want to avoid the maintenance burden associated with comint.
Long version. In many cases I dislike how the built-...
0
votes
1answer
29 views
Tramp/Emacs 27 freeze on Mac
I'm facing a major issue with Tramp and Emacs 27.1 on a Mac (10.15.7), which makes it almost impossible to work on remote files ...
As soon as I start to type a SSH or SCP based URL in the mini buffer ...
1
vote
0answers
38 views
How can I make sure I can stop a long operation in emacs?
I have a lisp function which performs a transformation on a buffer. It's usually quick, but sometimes it's very slow when the buffer is big.
I can see it's working, because it prints out its progress ...
0
votes
1answer
36 views
How to append some behavior to a command?
How do I string together functions and actions in a key binding.
Say I want to make a binding that does comment-dwim and then appends "TODO: " to achieve /* TODO: */ in C.
(global-set-key (...
0
votes
1answer
27 views
Locking an org-timer into the mode-line
Context. I frequently use
org-mode timers
The org-mode clock (which just displays the clock in the org-mode mode-line)
A custom "target time" clock, which shows a point in time (either a ...
0
votes
1answer
25 views
Where to place org-agenda-files sexp
I have this
(setq org-agenda-files (directory-files-recursively "~/Dropbox/org/journal/" "\\.org$"))
but I don't know where to place it in order to make sure that on the event of ...
1
vote
1answer
38 views
How to duplicate text but increment a numeric part of a name?
Say that I have rect1 one and I'll multiply it 3 times by yanking.
let rect1 = Rectangle {
width: 10,
height: 40,
}
let rect1 = Rectangle {
width: 10,
height: 40,
}
...
0
votes
1answer
22 views
How add specifc string(ex: TODO) along with a comment character for a specifc mode?
Based on specific mode, by using a keybinding I want to add a TODO string that is preceded by an unique comment character. For example, (org-mode is exception since ** does not stands for comment and ...
1
vote
1answer
29 views
c w movement up to next word instead of end of word
In vi, c w stops at the end of the current word (that movement is normally e, as in c e). This is different from w alone or d w, which go up to the beginning of the next word.
A popular Vim ...
0
votes
0answers
17 views
Path to .pass-store directory in pass
I want to store my passwords via pass in Dropbox and then open them with my secret key via emacs. Is it possible in "pass" to enter the path where my .password-store directory is stored.
...
1
vote
1answer
59 views
How do I change the highlighted background color inside the parenthesis?
I am using pretty much the default theme color however, I do want to change the highlighted background color inside the parenthesis.
Is there any specific Face Attributes setting for this specific ...
1
vote
1answer
29 views
How to remove indent on left margin and vertical line from src block when exporting org-mode to ascii?
When I export an org file to an ascii file, using org-export-to-ascii, I get some annoying lines on the left margin and an indent
,----
| .class{
| background:red;
| }
This is what I'm after:
....
0
votes
1answer
29 views
What is the system-wide location for init.el?
Is there a way to have a common init.el for several system users?
/etc/emacs.d/init.el for example?
1
vote
1answer
30 views
What's the difference between magit-branch-checkout and magit-branch-and-checkout?
If I'm on the commandline, and I'm in the master branch, and I want to create a new branch and immediately start working on it, I'd just do git checkout -b foo.
So I'm looking for the magit equivalent ...
0
votes
0answers
25 views
Cursor's color differs from what specified in the frame parameters
This question is related to this one: resize-temp-buffer doesn't work in my code when 2 windows are diplayed into the frame
If I open emacs from scratch and I evaluate:
(frame-parameter nil '...
0
votes
0answers
38 views
Resize inline images in org-mode to be fit a max size
In org mode, I am trying to resize inline images to fit a 100px x 100px square, which would be particular useful in the cases in which an image is much taller that wider, or vice versa. In other words ...
0
votes
0answers
10 views
Fold second-level (all methods) when opening a py-file (with hs-minor-mode)
I use hs-minor-mode currently.
When point is on class Foo... a M-x hs-hide-level will fold all methods of that class.
This is exactly the state I need for all *.py files when I open them. Is it ...
0
votes
1answer
30 views
Dynamic name for org-capture template file [duplicate]
I am new to org-mode (and to Emacs in general) and am trying to set up org-capture. I would like to define a todo capture item whose template is located in the file ~/.emacs.d/org-templates/todo.tmpl....
0
votes
1answer
62 views
How do I permanently change my emacs load-path?
Having searched for advice on how to change the load-path, I found this answer in the EmacsWiki:
https://www.emacswiki.org/emacs/LoadPath
I have evaluated a similar command in the minibuffer:
(add-to-...
0
votes
1answer
12 views
evil-mode exec register ignores pipe
In vim, assume :r!ls | grep foo is in the register l.
You can then do: @l to exec ls | grep foo and insert the contents matching foo in to the current buffer.
In evil-mode I get:
Usage: grep [OPTION].....
3
votes
0answers
13 views
Look up the key bound to a definition in a specific keymap, ignoring indirect bindings
How can I look up what key(s) are bound to a particular definition in a keymap? Basically the converse of lookup-key.
where-is-internal is almost the answer I'm looking for, but it doesn't seem to ...
0
votes
1answer
36 views
How to keep minibuffer height compact as possible?
I am using GNU Emacs 26.3 under iTerm2. My goal is to keep minibuffer size as compact/minimum as possible.
Default height view:
Sometimes minibuffer's height increases and remains as it is. The empty ...
0
votes
1answer
21 views
Change org-log-done setting only for a subtree
In my configuration, I have:
(setq org-log-done 'time)
However, for one particular subtree, I want to suppress this behavior. So, closing any items here will not record a time.
Can this be done by ...
1
vote
0answers
70 views
Doom emacs config does not fully load at start up
I am on Doom emacs, and have placed various scripts in my config file. These are mainly new keybindings and options for packages, e.g.
(define-key org-mode-map (kbd "s-;") 'org-agenda) ;
...
0
votes
1answer
25 views
Turn off auto-completion/company while in org-journal
Trying to get org-journal working, but it wants to auto-complete nearly every word I type, then require two space bar hits to advance to type next word.
I tried this and it works
(add-hook 'org-mode-...
0
votes
1answer
21 views
Let-bind diplayed windows and their size/posizion
Can I let-bind diplayed windows and their size/posizion? Is there a variable that stores these infos?
I need to run a script that will change the diplayed windows, opening some help temp buffers. At ...
0
votes
2answers
42 views
Org-mode hook following creation of a new <<<radio target>>>
I want to call org-update-radio-target-regexp as soon as org-mode recognises that a new <<<radio target>>> has been created (which seems to happen as soon as the third ">&...
1
vote
1answer
51 views
In Emacs Calc, how do I find the distance between two points (x1,y1) and (x2,y2)?
I'm trying to calculate the euclidean distance between two points (x1,y1) and (x2,y2) which is
sqrt( (x2-x1)^2 + (y2-y1)^2 )
Is there a way to calculate this easily with Emacs calc?
(I looked in the ...
1
vote
0answers
21 views
Use org-contacts in mu4e email auto completion
I have a contacts.org with following structure:
* Family
** Person 1
:PROPERTIES:
:TITLE:
:ALIAS:
:COMPANY:
:ROLE:
:EMAIL:
:MOBILE:
:WORK_PHONE:
:ADDRESS:
:URL:
:BIRTHDAY:
:ITOLD_THEM_EMAIL:
:...
0
votes
1answer
59 views
resize-temp-buffer doesn't work in my code when 2 windows are diplayed into the frame
I'm searching for a way to display messages while replacements are proposed to the users of a script.
I tried to write a macro but I'm in trouble with this code:
(defmacro with-user-explanation (...
0
votes
0answers
15 views
mac osx emacs terminal `C-M e` not works but `C-M a` works
in mac osx 's terminal.app, open emacs.
key binding C-M a works, will call c-beginning-defun
but, C-M e does not work: nothing is displayed, and C-h k for this key also shows nothing.
0
votes
0answers
82 views
The export of external links in org files to pdf and html files
I have a problem with the export of external links in org files to pdf and html files.
Let's say I have the two org files in the same directory:
file1.org =
here is the label of file1: <<label&...
1
vote
1answer
37 views
How can I bind F12 in serial-term mode to minicom's F12?
When I use emacs serial-term mode
Can I invoke F12 or other function keys as minicom's F12?
I tried below... but it doesn't work
(global-set-key [f12] nil)
Thank you in advance!
2
votes
1answer
48 views
Mark all email in mu4e as read
I have downloaded my emails using getmail and indexed them by mu. The problem now is that my mu4e has around 50000 emails that are marked as unread: is there a simply way to mark the entire Maildir as ...
1
vote
1answer
14 views
Org-Mode Startup not Rendering Theme Colors at Startup
System Info
Windows 10
emacs 27.1 64-bit
Description
Basically, when I open a new org file, it appears to be a plain text document. However, I can clearly see that org-mode is activated, and this ...
0
votes
2answers
26 views
Looking for a function to determine if an org-mode entry has a tag
I can use (org-entry-get (point) "myproperty") to get the value of the myproperty property for the current org-mode entry.
What about tags? Since a tag is either present or not, I was ...
0
votes
0answers
12 views
spacemacs/helm-persp-switch-project behavior
I am using emacs, previously I updated my spacemacs and behavior of spacemacs/helm-persp-switch-project command has been changed.
Old Flow
Start(execute spacemacs/helm-persp-switch-project)
If ...
0
votes
0answers
60 views
Emacs + imaxima: “Symbol's function definition is void: defun*” [solved]
I have maxima 5.44.0 installed on my machine (Manjaro Linux) and it runs fine in a shell, and in Emacs 27.1 when I launch M-x maxima.
I've added
(add-to-list 'load-path "/usr/share/emacs/site-...
0
votes
1answer
21 views
How can I go back to Texinfo native mode
I have a early-init.el file with:
(add-to-list 'load-path "~/.emacs.d/el-get/el-get")
(unless (require 'el-get nil 'noerror)
(require 'package)
(add-to-list 'package-archives
...