4 votes
Accepted

How to disable code blocks in an Emacs org-mode init file

Set the state of a header to COMMENT: ** COMMENT This will not be tangled #+BEGIN_SRC elisp (foo) #+END_SRC C-c ; runs the command org-toggle-comment.
mankoff's user avatar
  • 4,206
3 votes

Org Mode export options: do not export TODO keyword sections

The correct option to exclude task keywords is the following: #+OPTIONS: todo:nil See all export options here: https://orgmode.org/manual/Export-Settings.html
Perdu's user avatar
  • 51
3 votes

Filter org-file using tags

You need org-sparse-tree (do C-h f org-sparse-tree for details) which is bound (for me) to C-c /. Thus C-c / m tag1 will only show headlines matching (that is the force of the m) tag1.
Fran Burstall's user avatar
3 votes
Accepted

Emacs elisp debugger: How do i make the debugger jump to source when i press s?

s is bound to a new function that was recently added, and indeed it appears to be non–functional. I took a look at the source code, and it does attempt to pull file and line number from the stack ...
db48x's user avatar
  • 18k
3 votes
Accepted

How to do a "git fetch --all --tags" in Magit?

magit-fetch command, usually bound to f.
TerryTsao's user avatar
  • 1,216
2 votes
Accepted

Setting up org-mode tags with groups

Have a look at Rainer Königs video on Youtube. He described the solution of your problem in excess. Rainers solution: using org mode version >=8.3, since tag hierarchies were introduced with org 8.3.
exilsteira's user avatar
2 votes
Accepted

How to generate and display tags in treemacs (for JavaScript)?

js2-mode generates an imenu index that Treemacs displays.
sandinmyjoints's user avatar
2 votes
Accepted

emacs org mode: How to select multiple tags from dynamically generated tag list

Just to summarize: this is a bug in Org mode that dates from at least version 9.1.9 and persisted up to version 9.4.6. It was fixed in Org 9.5 with this commit.
NickD's user avatar
  • 29.8k
2 votes

How do I populate tags for C?

I'd use etags because it comes with Emacs and is what the default implementation of M-. targets. Given a C project you can use etags *.c *.h to generate the TAGS file in that directory and select it ...
wasamasa's user avatar
  • 22.2k
2 votes
Accepted

How can I ignore non-existing files in a fixed custom tags-search?

Filter the list with file-exists-p before passing it to tag-search to ignore non-existent files. (defvar my-files-form '("/path/to/one/file" "/path/to/another/file")) (defun ...
g-gundam's user avatar
  • 1,261
2 votes
Accepted

Adding new keywords delimeters

You can use a source block with a self-defined major mode. It is easy to define a customized major mode with helper functions like define-derived-mode. Let us name your new major mode myorg-mode. Then ...
Tobias's user avatar
  • 33.2k
1 vote
Accepted

How to display the list of all #+NAME properties is org-mode document?

You can use org-element-map to apply a function that gets the #+NAME of each matched element. Here's a function that does that: #+begin_src elisp (defun my/get-name (e) (org-element-property :...
NickD's user avatar
  • 29.8k
1 vote

Filter headlines using tags

[Incorporating comments into the answer to make it as complete as possible] You can use C-c / m +NOTES to create a sparse tree of headlines with the selected tag(s), but I'm not quite sure how to deal ...
NickD's user avatar
  • 29.8k
1 vote
Accepted

Position of cursor after org-tags-view search

You can submit an RFE to the Org mode mailing list and wait; or you can add an after-advice to org-tags-view to make it move a couple of lines forward at the end. Add the following to your init file. (...
NickD's user avatar
  • 29.8k
1 vote

How do you get gtags working with Lua?

I was able to generate the tags running gtags --gtagslabel=ctags from the root of the project, using a configuration from ubuntu (zcat /usr/share/doc/global/examples/gtags.conf.gz > ~/.globalrc). ...
Sebastián's user avatar
1 vote
Accepted

Use wildcard in tag search

Org mode uses the standard Emacs minibuffer completion mechanism for tags: whenever a tag is expected (e.g. at the C-c a m prompt), you can type TAB to get a completion list. You can click on a ...
NickD's user avatar
  • 29.8k
1 vote

Use wildcard in tag search

That is the correct way to do it. Your only other approach is to use something like ivy or helm, which when you type C-c a m will offer you a list of tags that you can use completion on to narrow down....
John Kitchin's user avatar
  • 11.9k
1 vote

How to match only the one word tag without the multiple word tag in image-dired?

Please M-x report-emacs-bug The current implementation (as of 28.1) of image-dired-mark-tagged-files doesn't make it possible to reliably isolate a tag: (image-dired--with-db-file ;; Collect matches ...
phils's user avatar
  • 51.1k
1 vote
Accepted

org-agenda tag selection buffer is too small to view any tags

someone pointed out in the comments to start emacs with the --quick option and that helped debug the issue. didn't take long to go through a few config options one by one. found the issue is a ...
tbny's user avatar
  • 51
1 vote

Progressive filtering with tags

Org mode lets you tag parts of data in org-mode, I believe. (No doubt someone will provide an answer speaking more to that. I mention it, without knowing much about it.) If you use Bookmark+ then you ...
Drew's user avatar
  • 77.5k
1 vote

emacs stalling when looking up definitions with lsp-mode and gopls

I encountered this problem too, and it did timeout each time as I saved file. I configured the lsp-format-buffer and lsp-organize-imports as the hook of before-save-hook. When I dived into the Emacs *...
Yuanbo Han's user avatar
1 vote

emacs stalling when looking up definitions with lsp-mode and gopls

You can lengthen the timeout using the lsp-response-timeout option: https://emacs-lsp.github.io/lsp-mode/page/settings/mode/#lsp-response-timeout Of course, what you really want to do is make gopls ...
db48x's user avatar
  • 18k
1 vote
Accepted

unexpected "Visit tags table (default TAGS)" prompt when looking up definitions with lsp-mode and gopls

As mentioned in the comments, a workaround for this issue is to start emacs on a folder (or on nothing) instead of on a single source file. This was discussed for VScode with gopls as backend here: ...
Ricky Robinson's user avatar
1 vote

Tag search in org mode delivers empty list although searched Tag exists

KO, I think that C-c a m works only in Agenda files and the one I searched is not a dedicated agenda file. Anyway (org-match-sparse-tree) which should do the trick delivers more than I want i.e. every ...
Guebert's user avatar
  • 101
1 vote

Using advice to run function before tag symbol lookup

You should use the new advice system `nadvice` instead of the old one. xref-find-definitions prompts the user already in its `interactive-form`. So you need to run `open-tags-file` in the interactive-...
Tobias's user avatar
  • 33.2k
1 vote
Accepted

Wrong type argument: commandp cscope

You have a spelling mistake: helm-cscope-find-calling-this-funtcion The word is spelled function I'm not using these features so I don't know for sure, but I suspect that the problem will be solved ...
phils's user avatar
  • 51.1k
1 vote

can't load python tags table

You can generate the TAG file like this: find . -name "*.py" | xargs etags -a Then in .emacs file: (setq tags-table-list (list "/path/to/TAG/file/dir/"))
djangoliv's user avatar
  • 3,199
1 vote
Accepted

Add tmsu tags as a helm-source

You can get the input from helm-pattern, for example, (helm :sources (helm-build-async-source "test" :candidates-process (lambda () (start-process "echo" nil "echo" ...
xuchunyang's user avatar
  • 14.5k

Only top scored, non community-wiki answers of a minimum length are eligible