We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Yu Shen • 3 years ago

How can I debug the following error:
(file-missing "Cannot open load file" "No such file or directory" "org-auto-tangle")

I'm using your literate configuration without significant change. But it fails for all the (use-package! ...)
the above is just an example.

Thanks for a very well documented configuration!

I'm using emacs 28.1 with native compilation in Ubuntu 20.04/WSL1/Windows 10.

Diego Zamboni • 3 years ago

Thanks for the kind words! I'm glad you found it useful.

The error seems to indicate the package is not installed. Did you run `doom sync` before running Emacs?

Diego Zamboni • 3 years ago

Thanks for your kind words! I'm glad you found it useful.

Diego Zamboni • 3 years ago

The error seems to indicate that the package is not installed. Did you run `doom sync` before running Emacs?

Yu Shen • 3 years ago

Thanks for replying. Maybe, I forgot to run doom sync.

Steve Barratt • 4 years ago

Thanks for this!
Any idea how would I give a directory to scan through for spash images, instead of providing a list?

Diego Zamboni • 3 years ago

Glad you found it useful!

For your question, you could use one of the directory-listing functions in Emacs LISP. See https://www.gnu.org/softwar... for a starting point.

Martin Sarosi • 5 years ago

Very awesome indeed - have taken and investigated a lot of your ideas.

One thing, do you know how to have no stars whatsoever in headings - so they just look like headings?

Diego Zamboni • 3 years ago

Glad you found it useful!

I think what you ask is part of Doom's `org` package, and enabled by the `+pretty` flag. See https://docs.doomemacs.org/...

rymndhng • 5 years ago

Thank you for sharing this. This had enough tips and tricks to help me address some of the subtle differences between spacemacs and doom!

Diego Zamboni • 3 years ago

Glad you found it useful!

Gerardin • 5 years ago

Magnificent post! I got some ideas. Since I don't use DOOM, how shall I replace (map! :desc (or desc file) when using vanilla Emacs? Thanks!

Diego Zamboni • 5 years ago

Thanks for the nice words!

You can also refer to my old Emacs config, where a lot of the functionality is implemented as well, without any Doom-specific constructs. For example, instead of `map!` you can use `global-set-key`, as shown at https://github.com/zzamboni...

Gerardin • 5 years ago

Thanks, and sorry for double asking :)

Gerardin • 5 years ago

Actually I am getting "Symbol’s value as variable is void: file [2 times]".
I am using the classical method:
(defun zz/add-file-keybinding (key file &optional desc)
(lexical-let ((key key)
(file file)
(desc desc))
(global-set-key (kbd key) (lambda () (interactive) (find-file file)))
(which-key-add-key-based-replacements key (or desc file))))

Diego Zamboni • 5 years ago

That sound like lexical binding is not enabled. lexical-let disappeared in recent version of Emacs, in that case you need to change it to let but enable lexical binding by adding the following as the first line of the file:
;;; -*- lexical-binding: t; -*-

Gerardin • 5 years ago

Funny thing... my original function had let, not lexical-let! So I tried using lexical-let and it seems to work perfectly. Seems that it is still working on the last Emacs. Thanks again for all your help!

Diego Zamboni • 5 years ago

Glad it worked!

Gerardin • 5 years ago

BTW, at the risk of being a pain... in the screenshot you sent, the menu to select the key associated to each orgmode file is vertical

a --> orgmode file 1
b --> orgmode file 2
c --> orgmode file 2
d --> orgmode file 2

However, in my Emacs this shows in one line in the minibuffer below, so it's really hard to go though them (especially having so many files).

a --> orgmode file 1 b --> orgmode file 2 c --> orgmode file 2 d --> orgmode file 2

Is there a way to control this behaviour?
Thanks!

Diego Zamboni • 5 years ago

I assume there is, because it happened like you describe in my previous config, and it's now vertical in Doom. Unfortunately I don't know which one. I suspect it should be one of the variables belonging to the `which-key` package, maybe this one:
which-key-min-display-lines is a variable defined in which-key.el.

Value
6

Original Value
1

Documentation
The minimum number of horizontal lines to display in the
which-key buffer.

Update: this is it! Setting which-key-min-display-lines to 1 makes it use the horizontal display again.

Gerardin • 5 years ago

Yes! Thank you! (setq which-key-min-display-lines 10) suits my needs perfectly :)