Questions tagged [code]
5 questions
2
votes
1 answer
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 {-}
This is just a random text with a citation in…

doctorate
- 1,789
- 16
- 39
2
votes
1 answer
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 was at a function
return the entire class if I was at a class
return…

Att Righ
- 725
- 4
- 14
1
vote
0 answers
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:jupyter-python
=> ((:display . "plain")
…

user41177
- 11
- 1
0
votes
0 answers
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-file or calling the C preprocessor (cpp) on a .c…

Nordlöw
- 487
- 3
- 12
0
votes
1 answer
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
- 934
- 6
- 18