Skip to main content

Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
28 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?
J. Mini's user avatar
  • 177
2 votes
1 answer
38 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.
J. Mini's user avatar
  • 177
1 vote
0 answers
148 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 '...
lukeflo's user avatar
  • 195
0 votes
0 answers
20 views

Need help using a custom tcblistings environment for src blocks

I'm trying to advise the function org-latex-src-block--listings to use a tcblistings environment that I like. In LaTeX the environment is used like... \begin{code}[title=TITLE, language=LANGUAGE, file=...
user41177's user avatar
  • 121
1 vote
0 answers
29 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:...
user41177's user avatar
  • 121
2 votes
1 answer
155 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 {-}...
doctorate's user avatar
  • 1,829
2 votes
1 answer
202 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 ...
Att Righ's user avatar
  • 775
0 votes
0 answers
29 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-...
Nordlöw's user avatar
  • 517
0 votes
1 answer
388 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!
Emmanuel Goldstein's user avatar