All Questions
5,928
questions with no upvoted or accepted answers
4
votes
0
answers
218
views
Count and display the number of subheadings
With this:
* Cookie counter [0/2]
- [ ] Item 1
- [ ] Item 2
I can count the number of list items or TODO items.
But what if I just want to count the number of subheadings? Is it possible to get ...
4
votes
1
answer
742
views
Why did the proced of Emacs not show the process on my win10 system?
My Emacs version is 26.1. The system is Microsoft Windows 10. When I run M-x proced, the buffer does not list the proced used on the current system. What is this situation?
4
votes
0
answers
70
views
Tag inheritance respecting mutual exclusivity in org mode
Is it possible to have tag inheritance respect mutually exclusive tag groups in org-mode? What I would like to do is set a default tag on a top-level entry, and override it with one of the other tags ...
4
votes
0
answers
594
views
emacs is frozen
I'm running emacs 26.2 RC1 compiled with debugging features on Debian 8 Jessie 64bit. Sometimes the Emacs GUI will freeze and all the buffers will go black. I've tried hitting C-g a number of times ...
4
votes
0
answers
209
views
live, literate, lean programming with org-mode
I would like to use lean-mode and org-mode together to write literate code that is also being parsed by the Lean server.
lean-mode (available on melpa) supports a live-coding style of interaction, ...
4
votes
0
answers
209
views
Are zero-based column numbers an Emacs idiosyncrasy?
The first line of a text file is line number 1 in probably every application I have ever come across, including Emacs.
Every application I have at hand also uses column number 1 for the first column ...
4
votes
0
answers
2k
views
How to update Org-mode through Emacs' Package Manager?
I have org-version 9.1.9 installed and am attempting to install the latest version 9.2.2
I followed the instructions on https://orgmode.org/worg/org-faq.html#installing-via-elpa.
On my system, M-x ...
4
votes
0
answers
704
views
How to make emacs work well with tiling window managers?
Under some conditions Emacs will try to resize a frame if its not fullscreen or maximized.
(specifically default-text-scale, but I don't think its the only one).
This sends window-manager window (...
4
votes
0
answers
1k
views
byte-compile much slower in X (vs. -nw)
Setup
Windows 10 host with X server (VcXsrv)
Linux guest (Arch) in virtual machine (VMware)
Benchmark
(defmacro measure-time (&rest body)
"Measure the time it takes to evaluate BODY."
`(let ...
4
votes
0
answers
960
views
Have Time showing up only in hours and not converted to days
I have a table were I get the time worked for this week. However it shows the time in "days hours minutes". I would prefer only hours. Is that possible?
* work clock tasks week
#+BEGIN: clocktable :...
4
votes
0
answers
991
views
Debugging in Unity3d with emacs?
I develop in Unity, and have been using emacs as my text editor for development. Debugging however has always needed to be done through monodevelop (and it crashes half the time while doing this). My ...
4
votes
0
answers
307
views
Flycheck Emacs Lisp in Org-mode babel source blocks
I want to have Flycheck syntax checking when I am editing Emacs Lisp code in a literal Org-mode file using babel SRC blocks. (Using Org's editing buffers with C-c ').
However the flycheck-emacs-lisp ...
4
votes
0
answers
116
views
Disable LINUX mode in Emacs
I am using Emacs 25.3 on Mac and when I try to open some linux kernel code, the behavior is different as below:
I cannot simply open a C file, but I am prompted for arch each time.
Occasionally, ...
4
votes
0
answers
598
views
Emacs into iCloud Drive for Coq
I use two Macs in my day to day coding studies: one iMac and one Macbook Air (three, if you count Emacs, ha ha ha). I often code on the same files with both computers, and iCloud Drive makes sense as ...
4
votes
0
answers
61
views
A workflow for managing compiled elisp packages with different versions of emacs
I am using different versions of emacs, on different computers. On some of those (work computers) I don't really have a choice to update, whereas for my personal computers, I like to run the latest ...
4
votes
0
answers
702
views
new lines in org mode export to LaTeX
This is similar to (this question).
I would like to export the following org-mode document to LaTeX:
* Test
text 1
text 2
text 3
- list 1
- list 2
- list 3
#+BEGIN_definition
...
4
votes
1
answer
1k
views
Generate a date tree from timestamps in org-mode
Since I was interested in doing my early capture-templates, I was tempted to go with this template below:
("j" "Reference type: Journal" entry (file+headline "~/Dropbox/orgfiles/gtd/ref.org" "...
4
votes
0
answers
405
views
Org-Mode Latex Preview screen-dependent size
When using the inline latex preview in org-mode, I have discovered that it seems the size of the preview images is dependent on the display size.
While at work, I have my laptop connected to a dock, ...
4
votes
1
answer
413
views
Color when visualizing latex table in orgmode
I am using Emacs + orgmode to write text and latex equations. The preview within orgmode (with C-c C-x C-l) works well for latex equations.
However, I noticed that if I display a latex table within ...
4
votes
0
answers
3k
views
Extremely slow startup on Windows - How to debug?
I have a serious problem with an extremely slow spacemacs startup (emacs-init-time = ~200s).
(The server works, but this is so slow I cannot debug some other problems that I am trying to fix)
My ...
4
votes
0
answers
4k
views
Meta key in Mac for Emacs
I have been working with GNU emacs on a Linux server but my keyboard is for mac.
I have a problem with defining the alt key as meta.
tried (setq mac-command-modifier 'meta) in ~/.emacs.el and then ...
4
votes
0
answers
610
views
Display mode-line on multiple lines
How do I set the mode-line to display using multiple lines, as required (or even statically), to fit in all of its contents?
4
votes
0
answers
439
views
org-mode HTML export - difference in behavior with org-html and org-pandoc
I have an example org-mode file with the following contents:
- only text\\
only text\\
only text
- image... (works with org-html but not pandoc-html because of no brackets around "file:" ...
4
votes
0
answers
130
views
Save org-babel output with org-attach
I am using org-babel to write R code in Emacs org-mode. Here's an example:
#+BEGIN_SRC R :session *R* :results output graphics :width 5 :height 5
data(AirPassengers)
AP <- AirPassengers
plot(AP)
...
4
votes
0
answers
1k
views
Run interactive shell script in new buffer using elisp
I am looking for a way to display and interact with long running shell scripts in a separate buffer. While using eshell works, I'd like to automate most shell tasks using elisp.
The best way I came ...
4
votes
0
answers
342
views
Info basics: where is package Info?
I just grabbed csv from elpa (melpa) and, of course, the install buffer had the blurb about csv. I take it that blurb is an Info file somewhere? Or is it just a section of the csv.el comments? In ...
4
votes
0
answers
2k
views
Spacemacs C++ debugging?
What tools are you using for
setting Breakpoints
visualize Variables
within Spacemacs? I had a look at gdb but it felt awkward to set the breakpoints separated from the source files. I would like to ...
4
votes
0
answers
329
views
Is it possible to debug Django from gud-pdb?
Brand new to gud/pdb and I am trying to run the Django development server from emacs. I can't seem to set breakpoints that affect the running server, though.
I am invoking PDB with M-x pdb, then ...
4
votes
0
answers
2k
views
Emacs sometimes fails to save files
I'm experiencing a weird problem with Emacs on Windows where sometimes, after a while, the current buffer I'm in throws an error when attempting to save the file. I can't seem to reliably reproduce ...
4
votes
0
answers
272
views
How to make Emacs not intercept Command-Ctrl-Space, used for Special Characters on macOS?
On macOS the CommandCtrlSpace shortcut opens an Emoji picker which can be expanded into a Special Characters picker.
But when I type this shortcut on Emacs in order to input a character, instead of ...
4
votes
0
answers
1k
views
Projectile not remembering remote projects
I'm using spacemacs and regularly use Tramp (via /sshx:) to open files, once I've opened a file in Tramp I can use projectile without any problems.
However, projectile doesn't remember these projects ...
4
votes
0
answers
125
views
Is org-mode compatible with Plain TeX?
Being an old timer used to Plain TeX, I'd like to be able to add Plain TeX portions to an org-mode file and have them be nicely displayed when exported. Is it possible to configure org-mode for this ...
4
votes
0
answers
186
views
How to keep hl-line updated in inactive window?
I have (setq global-hl-line-sticky-flag t) to enable hl-line in all windows. However, the highlighted line isn't updated when I change the cursor position in inactive window (e.g., by calling next-...
4
votes
1
answer
216
views
Process unread-command-events and redisplay
(defun pretend (keys)
(dolist (e (reverse (listify-key-sequence (kbd keys))))
(push e unread-command-events)
;; (mystery-function)
(redisplay t)
(sleep-for 0.1)))
(pretend "M-x my-...
4
votes
0
answers
266
views
Add another level to org-mode visibility cycling
The way S-TAB (org-global-cycle) switches between "top headline -> all headlines -> all content" is great for showing an outline and provide overview, but acts on the full document. Using TAB (org-...
4
votes
1
answer
510
views
Dired+. Is it possible to change color of recent created/edit files/folders?
Windows 10, Emacs 25.1, Dired+
I use file manager Total Commander. And I set them to show different color (blue) for recent(e.g 1 hour) created/edited files/folder. It's very comfortably.
Here ...
4
votes
0
answers
880
views
Export to multiple files according to tags
I am using org mode to build teaching presentations (through beamer export) and I have a global document containing all the slides I use. Each slide has a tag to indicate the corresponding teaching ...
4
votes
0
answers
329
views
Like JavaScript prettier but for Elisp
(N00b question.)
Is there command/package/snippet to format elisp code (like in my init file) in a standard(-ish) way, like what Prettier does for JavaScript?
I'm not only concerned about ...
4
votes
0
answers
335
views
Separating state change log entries from other notes
Following Rainer König's example in this video, I've customized org-log-into-drawer to be LOGBOOK. I've also added timestamps for various state changes such as from DOING to DONE, so that when these ...
4
votes
0
answers
547
views
Does `@` in a tag have a special meaning?
I see that the only allowed characters in tags are letters, numbers, _, and @. While _ apparently serves to visually separate words, why is @ included? Does it have any special meaning, or a typical ...
4
votes
0
answers
293
views
Is there an ELISP decompiler?
I'm thinking of writing one so that when I get those horrible tracebacks from bytecode files, I can better see where I was at.
Is there one already?
Are there any other tools for showing an error ...
4
votes
0
answers
152
views
Get Administrator privileges on Windows via TRAMP?
I constantly use /sudo::/ URI schema on Linux to edit protected files.
Is there something similar on Windows?
Currently I start Emacs with Administrator privileges but that can lead to write ...
4
votes
1
answer
325
views
Org Mode: Difference in results when evaluating code block and evaluating called code block
I am a beginner who wants to evaluate a Call to a code block in an org-file and get the same results as when I evaluate the actual code block. Like so:
#+NAME: Myblock
#+BEGIN_SRC emacs-lisp :results ...
4
votes
0
answers
256
views
org-mode: I can recalculate all tables, or realign, but not both
I've got a dynamic block in org-mode (e.g. a clocktable) and I want to update it on save. To do this, I have written the following function (which I'm calling in a before-save-buffer hook):
(defun my/...
4
votes
0
answers
299
views
How to use italic in quoted text in org-mode
Let us say I have the following code in an org file that I want to export to LaTeX and pdf.
#+BEGIN_QUOTE
These kinds of models show that coalition building might be important.\\
[[citep:Pamp2015]...
4
votes
1
answer
223
views
Syntax highlighting is breaking in long bibtex files (spacemacs bibtex layer)
So I have a long papers.bib bibtex file that I edit with emacs (spacemacs bibtex layer), but the syntax highlighting only ever goes about halfway down. Here it is at about line 790:
Other times this ...
4
votes
2
answers
814
views
How can I get :LOGBOOK: into Column View?
The items in my org-mode file will have a number of properties relating to data points that I need to capture. In conjunction with this, I'd like to continue using C-c C-z to log notes tracking ...
4
votes
0
answers
116
views
org-drill: set a maximum interval
org-drill allows you to configure the learning fraction (org-drill-learn-fraction) so that intervals grow over time. But it will grow without bound.
How can I set a maximum interval?
4
votes
0
answers
615
views
Visual-line-mode not working in spacemacs
I've seen a lot of questions relating to visual-line-mode not working in specific modes, e.g., org mode, but I can't get it to work in spacemacs in text mode. The relevant part of my .spacmacs file:
...
4
votes
0
answers
284
views
Echo contents of a heading of one .org file in another
Is there a way to have contents of a heading of an .org file echoed in another .org file, so that the text in the second file would be updated automatically when the first file changes?
For example, ...