Questions tagged [code]
The code tag has no summary.
12 questions
0
votes
1
answer
32
views
Different begin/end line color for org source code block based on language
I know that we can customize org source block begin and end line colors using below config
(custom-set-faces!
;; Customize the header line of the source block
'(org-block-begin-line :background &...
0
votes
1
answer
91
views
VsCode Navigate through code on Emacs
I am Gnu/linux user and Emacs but at my job I have to use Windows and vscode for a Ts project. So I decided to use Emacs on my job laptop but I cannot navigate through the contollers/services on the ...
0
votes
0
answers
118
views
how to configure and use dumb-jump
I have following in my init.el file:
(use-package dumb-jump
:straight t
:init
)
(add-hook 'xref-backend-functions #'dumb-jump-xref-activate)
(setq xref-show-definitions-function #'xref-show-...
0
votes
1
answer
54
views
Org-babel ignores RESULTS when generating beamer?
I'm using Org-babel to generate a bunch of pdfs from a single Org-mode file, compiling using Beamer.
Each subtree starts something like this:
* Introduction
:PROPERTIES:
:EXPORT_FILE_NAME: pdf/...
1
vote
0
answers
65
views
Can I make all src blocks of the same programming language inherit the same #+ATTR_LATEX: block?
Suppose that for Python and only Python, I want #+ATTR_LATEX: :options frame=single to customise my #+begin_src blocks. Does Org Mode have any natural way of doing this?
2
votes
1
answer
83
views
How can I put a letter immediately after inline code in org-mode?
In markdown, I can write `foo`s to get foos. How do I do the same in Org Mode? ~foo~s doesn't do it and ~foo~ s adds a space.
1
vote
0
answers
437
views
org-mode latex export of source block with engraved gives error for latex3 code due to missing color-`face` processing
I want to export my source blocks from org-mode to pdf through latex with the export backend engraved. I installed the package engraved-faces, set the variable with (setq org-latex-src-block-backend '...
1
vote
0
answers
52
views
How to remove results drawer from emacs jupyter?
I am using emacs-jupyter (commit - 16cbda79167b4e2f2c6b61b218658f0f660d97f9 [otherwise I get an error]) on emacs-29.1 and org-9.7pre.
My default header arguments are...
org-babel-default-header-args:...
2
votes
1
answer
235
views
How to get emacs count text words only without counting words in comments, code blocks, and markups in markdown?
Publishers set a word count limit you have to meet in writing a manuscirpt. I am trying to write up the manuscript using markdown in emacs.
Consider the example below.
MWE
# Results {-}
## Topic 1 {-}...
2
votes
1
answer
348
views
evil text objects for code object at point?
I use text objects with evil like "i(" for the contents of the brackets. I would quite like "magic code aware text objects"?
This textobject would:
return the entire function if I ...
0
votes
0
answers
41
views
Mode to automatically open generated files
I'm looking for a mode or hook that automatically opens a generated in read-only and auto-revert-mode mode alongside an associated with a source file. For instance when calling dmd -vgc-ast on a .d-...
0
votes
1
answer
511
views
org-babel: can the plot size be specified?
I was wondering if the output plots resulting from org-babel blocks are customizable in size (how they appear in the org-mode buffer, as in its dimensions X and Y). Thanks!