Coder Social home page Coder Social logo

tecosaur / emacs-config Goto Github PK

View Code? Open in Web Editor NEW
1.0K 27.0 121.0 2.88 MB

My configuration for Doom Emacs. Mirror of https://git.tecosaur.net/tec/emacs-config.

License: MIT License

Emacs Lisp 5.72% YASnippet 1.18% HTML 0.11% Python 1.55% JavaScript 0.55% SCSS 5.74% Org 78.12% CSS 7.01% Shell 0.03%
emacs emacs-configuration doom-emacs literate-configuration

emacs-config's People

Contributors

tecosaur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emacs-config's Issues

[question] Generating text flowcharts

Hi @tecosaur,
Thank you for publishing this.
I wonder how you generate the text flowcharts. They look really nice and I'm not aware of any tool that generate them this clean :).
I'm talking about these:


      ╭─╴Code╶─╮            ╭─╴Raw Code╶─▶ Computer
Ideas╺┥        ┝━▶ Org Mode╺┥
      ╰─╴Text╶─╯            ╰─╴Document╶─▶ People




                   ╭───────────────────────────────────▶ .pdf ⎫
                  pdfLaTeX ▶╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╮                 ⎪
                   ╿     ╿                  ┊                 ⎪
                   │     ┊                  ┊                 ⎪
                 .tex    ┊                  ┊                 ⎪
                   ╿     ┊                  ┊                 ⎪
                ╭──┴╌╌╮  ┊                  ┊ style.scss      ⎬ Weaving
graphc.png ─╮   │  embedded TeX             ┊      ╽          ⎪ (Documents)
image.jpeg ─┤ filters   ╿                   ┊    .css         ⎪
            ╎     ╿     ┊                   ┊     ▾╎          ⎪
figure.png╶─╧─▶ PROJECT.ORG ▶───╴filters╶───╧──────╪──▶ .html ⎪
     ╿           ╿┊ ║ │ ╰╌╌╌▷╌╌ embedded html ▶╌╌╌╌╯          ⎪
     ├╌╌╌╌╌╌╌▷╌╌╌╯┊ ║ │                                       ⎪
    result╶╌╌╌╌╌╮ ┊ ║ ├──────╴filters╶────────────────▶ .txt  ⎪
     ┊▴         ┊ ┊ ║ │                                       ⎪
    execution   ┊ ┊ ║ ╰──────╴filters╶────────────────▶ .md   ⎭
     ┊▴         ┊ ┊ ║
    code blocks◀╯ ┊ ╟─────────────────────────────────▶ .c    ⎫
     ╰╌╌╌╌◁╌╌╌╌╌╌╌╯ ╟─────────────────────────────────▶ .sh   ⎬ Tangling
                    ╟─────────────────────────────────▶ .hs   ⎪ (Code)
                    ╙─────────────────────────────────▶ .el   ⎭

I can't seem to find it in the rest of your config. I see you also have graphviz-dot-mode in your config but I'm not aware if that could be used to generate text. Is that what is used here? Looking forward for your response.

Thank you.

How do you handle qwerty-oriented keybindings?

Thanks for the effort to make your config literate! For an emacs noob like me, it has been an insanely helpful example!
How did you handle qwerty-based keybindings?(evil movement keys, movement keys in other modes, etc) I'm a colemak user struggling to make movement work for colemak globally. Since you mentioned in your config that you're a colemak user as well, I thought I'd ask.

Graphic not showing correctly

I love your config, it is superbly curated!
In the html export of your config, the graphic comparing the different editors does not show properly.
I remember it was showing properly in the past and it is showing properly in the pdf version.

I find it to be very aesthetic, would you mind pointing me towards the tools you used to create it, or even share some of the code?

Thank you for the inspiration!

Unexpected error after CLI:Initializing recipes

May I ask for help to find where does this come from please? What confuses me the most is the mention of (stringp afternoon-theme). Just in case I installed afternoon but nothing really changed.

I'm using pieces of the config.org in the repo, everything works fine but this, I can't =SPC h r r=, this is what it says:
cli.doom.221125034355.2690362.log

M-x ediff-files hangs emacs with high CPU utilizaiton

First, thanks for producing a very elegant doom emacs-config, well documented!
When I performed ediff between two files, after providing file B, the emacs hanged, without displaying the ediff buffers, but the status area shows "processing difference regions ... done".

The emacs process has to be aborted through task manager. C-g would not work, neither SPC q

The emacs version is Emacs 27.1
I running emacs not as a daemon, just an application by:
emacs & # at command line or
~/.emacs.d/ibn/doom run &

The computer environment is Ubuntu 18.04 in WSL 1 in Windows 10.
could this be the source of the problem?

Here is a screenshot showing where it hanged and the high CPU utilization of the emacs process.
image

I tried ediff-buffers has the same problem.

doom refactorings break html/pdf export

I really enjoy your setup for html/pdf generation of the org-config. Recent refactoring (and probably others, see below) to the doom code break the export.

Changes to doom

E.g.

  • logged-message is undefined and will err out (maybe this is just my local config)
  • core/core.el has been renamed to list/doom.el
  • core-cli has been renamed to doom-cli
  • ~/.emacs.d/init.el is no more (and I do not know how to fix that)

Errors remaining

Still export fails:

DEBUG=1 ./publish.sh 
[ 0.0s] Starting publish process
[ 0.2s] org-html process failed!
      
[ 0.2s] Config publishing aborted

The logfiles are empty (see below) and typescript seems like a script recording but fails to replay:

scriptreplay -t typescript 
scriptreplay: typescript: line 80: timing file error: No such file or directory

Running org-html.sh directly points to the refactorings (see below) in doom startup code:

DEBUG=1 ./org-html.sh 


[ 0.1s] Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "/home/jens/.emacs.d/init.el")
  load("/home/jens/.emacs.d/init.el")
  (if full (load (expand-file-name "~/.emacs.d/init.el")) (progn (setq gc-cons-threshold 16777216) (setq gcmh-high-cons-threshold 16777216)) (load (expand-file-name "lisp/doom.el" user-emacs-directory) nil t) (require 'doom-cli) (doom-initialize))
  initialise(t)
  #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_98>(#<buffer  *load*> "/home/jens/.doom.d/misc/config-publishing/org-html...")
  load-with-code-conversion("/home/jens/.doom.d/misc/config-publishing/org-html..." "/home/jens/.doom.d/misc/config-publishing/org-html..." nil t #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_98>)
  command-line--load-script("/home/jens/.doom.d/misc/config-publishing/org-html...")
  command-line-1(("-scriptload" "./org-html.sh" "--"))
  command-line()
  normal-top-level()

My attempt

diff --git a/misc/config-publishing/initialise.el b/misc/config-publishing/initialise.el
index d98329b..d068d8f 100644
--- a/misc/config-publishing/initialise.el
+++ b/misc/config-publishing/initialise.el
@@ -29,7 +29,7 @@
         (coding-system-for-write 'utf-8))
     (append-to-file str nil log-file)))
 
-(when log-messages
+(when (and log-messages (boundp 'logged-message))
   (advice-add 'send-string-to-terminal :after #'logged-message))
 
 (defvar message-colour t)
@@ -73,8 +73,8 @@
       (load (expand-file-name "~/.emacs.d/init.el"))
     (setq gc-cons-threshold 16777216
           gcmh-high-cons-threshold 16777216)
-    (load (expand-file-name "core/core.el" user-emacs-directory) nil t)
-    (require 'core-cli)
+    (load (expand-file-name "lisp/doom.el" user-emacs-directory) nil t)
+    (require 'doom-cli)
     (doom-initialize))
 
   (setq doom-cli-log-error-file log-file)

Attachments

Changes to doom

git lg --stat -S  core-start
  ... 
  * | b9933e663 - refactor!: restructure Doom core (6 days ago) <Henrik Lissner>| | 
  | |  early-init.el                            |  8 ++++----
  | |  {core => lisp}/cli/autoloads.el          | 10 +++++-----
  | |  {core => lisp}/cli/compile.el            |  8 ++++----
  | |  {core => lisp}/cli/doctor.el             |  6 +++---
  | |  core/core-start.el => lisp/doom-start.el | 12 ++++++------
  | |  {core/autoload => lisp/lib}/config.el    |  4 ++--
  | |  6 files changed, 24 insertions(+), 24 deletions(-)
   
  ... 
  * | fbc5fd7f8 - nit: revise comments in early-init.el (10 days ago) <Henrik Lissner>| | 
  | |  early-init.el | 38 +++++++++++++++++++++-----------------
  | |  1 file changed, 21 insertions(+), 17 deletions(-)
   
  ... 
  * | 837f404fb - fix(lib): update doom/reload & doom/reload-autoloads (7 weeks ago) <Henrik Lissner>| | 
  | |  core/autoload/config.el | 7 ++-----
  | |  1 file changed, 2 insertions(+), 5 deletions(-)
   
  ... 
  * | 74f3c1d11 - fix(cli): doom {compile,clean} errors (7 weeks ago) <Henrik Lissner>| | 
  | |  core/cli/compile.el | 2 +-
  | |  1 file changed, 1 insertion(+), 1 deletion(-)
   
  ... 
  * | 6c0b7e153 - refactor!(cli): rewrite CLI framework libraries (7 weeks ago) <Henrik Lissner>| | 
  | |  core/cli/autoloads.el | 33 +++++++++++++++++++--------------
  | |  core/cli/doctor.el    | 79 ++++++++++++++++++++++++++++++++++++++++++++++---------------------------------
  | |  2 files changed, 65 insertions(+), 47 deletions(-)
   
  ... 
  * | 1402db512 - refactor: how Doom starts up (7 weeks ago) <Henrik Lissner>| | 
  | |  core/core-start.el | 201 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  | |  early-init.el      |  56 +++++++++++++++++++++++++++++++++++------------------
  | |  2 files changed, 238 insertions(+), 19 deletions(-)

Logfiles

ls -latr|tail -n5
-rw-r--r-- 1 jens jens    0 2022-08-06 09:41 publish-log.txt
-rw-r--r-- 1 jens jens    0 2022-08-06 09:41 org-html-log.txt
-rw-r--r-- 1 jens jens    0 2022-08-06 09:41 htmlize-log.txt
drwxr-xr-x 2 jens jens 4096 2022-08-06 09:41 .
-rw-r--r-- 1 jens jens 1709 2022-08-06 09:41 typescript

Translate into Persian 🇮🇷

Translate into Persian 🇮🇷

Hello. I can translate this text into Persian
I think I should translate the two files readme.org and conf.org, Do you need to do anything other than that?
And one question, How do I export these files?

TODO:

  • Translate readme.org
  • Translate conf.org

keycast issue

I was looking to borrow your keycast config, but get this error when running keycast-mode.

user-error: Cannot turn on keycast-mode.  mode-line-buffer-identification not found in mode-line-format. 

Any ideas?

doom sync taking too long

Hi!
I've noticed that after installing your config (all of it) my doom sync is taking too long (around 1 minute).
Is that expected? Maybe it's reinstalling some stuff...

Errors from init hooks

Hey there, I have tried to install the configuration according to the instructions on the README.md file, but this is the outcome.
What should I have done about this 😕
Screenshot from 2021-12-10 02-39-50

weird unicode issue?

When looking at the HTML I see a weird missing symbol after clicking on a src code block, as seen on the left of the block on the image below:

image

Are there perhaps issues with the fonts?

Teach-a-man-to-fish example will not run.

In your excellent config.org, the example command

(defadvice! prompt-for-buffer (&rest _)
      :after 'window-split (switch-to-buffer))

yields "progn: Symbol’s function definition is void: defadvice!" in vanilla emacs.

wrong-type-argument stringp nil

followed is my Message buffer, when I start emacs with emacs --debug-init

DOOM Initializing Doom
Debug mode on
DOOM Initializing core modules
DOOM Initializing user config
DOOM Running doom hook: evil-mode
DOOM Running doom hook: +evil--init-popup-rules-h
DOOM Running doom hook: +workspaces-init-h
Power Battery, battery high (90% load, remaining time 4:56)
DOOM [editor/evil] Initialized evil-collection-elisp-mode (too early!)
DOOM [editor/evil] Initialized evil-collection-comint (too early!)
DOOM [editor/evil] Initialized evil-collection-custom (too early!)
DOOM Running doom hook: +doom-dashboard-init-h
Error during redisplay: (eval (if (s-contains-p org-roam-directory (or buffer-file-name "")) (replace-regexp-in-string "./[0-9]-?" "☰ " (subst-char-in-string 95 32 buffer-file-name)) "%b")) signaled (wrong-type-argument stringp nil)
DOOM [editor/evil] Initialized evil-collection-ibuffer (too early!)
DOOM [editor/evil] Initialized evil-collection-compile (too early!)
DOOM [editor/evil] Initialized evil-collection-grep (too early!)
Error during redisplay: (eval (if (s-contains-p org-roam-directory (or buffer-file-name "")) (replace-regexp-in-string "./[0-9]-?" "☰ " (subst-char-in-string 95 32 buffer-file-name)) "%b")) signaled (wrong-type-argument stringp nil) [3 times]
DOOM [ui/doom-dashboard] Reloading dashboard at 14:49:22

Splash screen script changes color of cursor to default (black)

So, I tried just copying the splash screen code (because it looks so damn good), took the svg too, but my cursor is getting black with that code, couldn't figure out where is the function that does this, and it kinda annoys me because I use a dark theme and getting a black cursor is not optimal for my not so good eyes.

Default theme cursor without loading splash screen
Default theme cursor without loading splash screen

Black cursor after loading splash screen
Black cursor after loading splash screen

Would love some help. xoxo.

where to use "use-package :after

Hi Tecosaur,
I am trying of learn from your config file, thank you for sharing info and explanations it helps a lot.
So I am trying to install some of the packages you have in your doomdir.
For ex I tried to install org-pandoc-import, I synced succesfully, but I can not find it on M-x.
I guess I should execute the (use-package org-pandoc-import :after or) but I don't know in which file I am supposed to write that (use-package)thingy,
thank you!

(use-package org-roam-server :after (org-roam server) :config (setq org-roam-server-host "127.0.0.1" org-roam-server-port 8078 org-roam-server-export-inline-images t org-roam-server-authenticate nil org-roam-server-network-label-truncate t org-roam-server-network-label-truncate-length 60 org-roam-server-network-label-wrap-length 20) (defun org-roam-server-open () "Ensure the server is active, then open the roam graph." (interactive) (org-roam-server-mode 1) (browse-url-xdg-open (format "http://localhost:%d" org-roam-server-port))))

<TAB> not execute org-cycle when I opened config.org

when I opened "config.org" and press on a org line, and give me a message "user-error: No matching item found on the current line"
It should execute org-cycle and expand the title. very inconvenient. shift-TAB is work anyway.

But when I open a simple org file, it execute org-cycle. Cant figure out why.

Adjusting the colors on the splash screen

First off, I love the config file. It's really slick so thanks for posting it.

I'm trying to adjust the colors on the splash image .svg along with the background and the sort. I figured the colors to change were the following on your config file:

(defvar fancy-splash-template-colours '(("$colour1" . keywords) ("$colour2" . type) ("$colour3" . base5) ("$colour4" . base8)) "list of colour-replacement alists of the form (\"$placeholder\" . 'theme-colour) which applied the template")

So I'm trying to adjust them to the following:

(defvar fancy-splash-template-colours '(("$colour1" . functions) ("$colour2" . variables) ("$colour3" . base2) ("$colour4" . base8)) "list of colour-replacement alists of the form (\"$placeholder\" . 'theme-colour) which applied the template")

And there's been no success with it so far. I'm using the doom-gruvbox theme for reference.

Just curious if I'm missing something here since I'm new to Doom Emacs. Thanks!

opening config.org in emacs --debug-init mode back trace

Package cl is deprecated
Battery status not available
Battery status not available
Battery status not available
Battery status not available
Battery status not available
Battery status not available
Battery status not available
Battery status not available
Battery status not available
Battery status not available
Battery status not available
Battery status not available
md-roam is active
org-super-agenda-mode enabled.
org-super-agenda-mode enabled.
org-super-agenda-mode enabled.
org-super-agenda-mode enabled.
org-super-agenda-mode enabled.
org-super-agenda-mode enabled.
Doom loaded 0 packages across 110 modules in 3.595s
Symbol’s value as variable is void: vc-log-view-type

Just can't get the capture templates to work: Capture abort: Unknown template placeholder: "%^G"

I use the 1:1 version of your capture config (and much more).
I tried with / without the %{extra} and of course doct is installed correctly ...
I of course checked the org-mode docs and for sure %^G is legit.

Please help me out here.

I MUST say your configuration infused even more pleasure using DOOM. Your implementation of fonts are amazing.

BTW: What could your use of <> possibly mean?
Even though I know it has its place in referencing for org-files, my literate config.org trows an error if used.

Thank you in advance for your support and have a great day,
Jochen

doct + all-the-icons

I like the idea!

I came across your usage here and pushed a change to doct that will allow more introspection during the doct-after-conversion-functions hook. The upshot is that you could specify a custom :icon keyword and use that to take care of prepending your templates' names during the hook.

The necessary functions are:

(defun +doct-icon-declaration-to-icon (declaration)
  "Convert :icon declaration to icon"
  (let ((name (pop declaration))
        (set  (intern (concat "all-the-icons-" (plist-get declaration :set))))
        (face (intern (concat "all-the-icons-" (plist-get declaration :color))))
        (v-adjust (or (plist-get declaration :v-adjust) 0.01)))
    (apply set `(,name :face ,face :v-adjust ,v-adjust))))

(defun +doct-iconify-capture-templates (groups)
  "Add declaration's :icon to each template group in GROUPS."
  (let ((templates (doct-flatten-lists-in groups)))
    (setq doct-templates (mapcar (lambda (template)
                                   (when-let* ((props (nthcdr 5 template))
                                               (spec (plist-get (plist-get props :doct) :icon)))
                                     (setf (nth 1 template) (concat (+doct-icon-declaration-to-icon spec)
                                                                    "\t"
                                                                    (nth 1 template))))
                                   template)
                                 templates))))

And you'd set doct-after-conversion-functions to:

'(+doct-iconify-capture-templates)

Then on your templates you can specify the icon like so:

("Personal todo" :keys "t"
 :icon ("checklist" :set "octicon" :color "purple")
 :prepend t
 :headline "Inbox"
 :template ("* TODO %?" "%i %a"))

IMHO, this is easier to read.

Just thought I'd point out the possibility.
Thanks for using doct!
(note this will only work on latest version of doct)

LSP support in src blocks

Thanks for sharing your awesome config!

I'm very interested in getting LSP to play nicely with org source blocks, and I've only had limited success so far. I saw you have a section in your config on that topic. Unfortunately, I don't know what it does exactly and how to get it running. Could you elaborate? Would be much appreciated.

Config asks for password to clone

git clone --recurse-submodules [email protected]:tecosaur/emacs-config.git ~/.config/doom
Cloning into '/home/kronikpillow/.config/doom'...
remote: Enumerating objects: 4516, done.
remote: Counting objects: 100% (4516/4516), done.
remote: Compressing objects: 100% (1626/1626), done.
remote: Total 4516 (delta 2811), reused 4475 (delta 2802), pack-reused 0
Receiving objects: 100% (4516/4516), 2.39 MiB | 1.88 MiB/s, done.
Resolving deltas: 100% (2811/2811), done.
Updating files: 100% (159/159), done.
Downloading misc/screenshots/calc-with-calctex.png (27 KB)
Error downloading object: misc/screenshots/calc-with-calctex.png (a43516b): Smudge error: Error downloading misc/screenshots/calc-with-calctex.png (a43516b758f0089733ff96938a80795b78f010a66befeac80b1ca526308166cf): LFS: Get "https://github-cloud.githubusercontent.com/alambic/media/252507315/a4/35/a43516b758f0089733ff96938a80795b78f010a66befeac80b1ca526308166cf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIMWPLRQEC4XCWWPA%2F20231117%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231117T105500Z&X-Amz-Expires=3600&X-Amz-Signature=e2bd5e8e3d41573fcb03b59398c3aeda2eeb4b80251f4280d9cbfd92f5840fa9&X-Amz-SignedHeaders=host&actor_id=48420193&key_id=0&repo_id=237889178&token=1": dial tcp: lookup github-cloud.githubusercontent.com on 192.168.1.1:53: no such host

Errors logged to '/home/kronikpillow/.config/doom/.git/lfs/logs/20231117T115500.482434608.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: misc/screenshots/calc-with-calctex.png: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

wanted to try your config, asks me for password ? :-/

Writeroom-mode doesn't work well in Org documents.

This is what I'm trying to achieve.

image

I have enabled and properly loaded (no errors) the following modules of Tecosaur's config:

image
image
image
image
image
image
image
image
image

I apologize for so many pictures, the relevant modules are problably the latter ones (and the ones in English), but just in case I sent every I had... Any help would be appreciated.

org-return-indent is obsolete and breaks org-return-dwim

First of all, thank you for documenting your config so thoroughly here. One of the things I copied from your config is the org-return-dwim function. Or more specifically, how you use it by advising the org-return-indent function. Until I saw your approach, I was never able to get the org-return-dwim function to map to RET in doom.

Unfortunately, the org-return-indent command is obsolete since Org 9.4. And this breaks the org-return-dwim configuration. Any chance you can have a look at if it still works for you?

mu4e filenotify (rebuild mail index while using mu4e) on Mac OS

I'm trying to make your mu4e config (at least fetching and reindexing) work on Mac OS. I think, everything will work, if substitute systemd-related code with launchd one in your python script mbsync-imapnotify.py. Currently I use this script just to parse my config. While testing after adding lisp code, i found out, that (file-notify-add-watch mu4e-reindex-request-file '(change) #'mu4e-file-reindex-request) will not work as expected, because I cant add watcher, if mu4e-reindex-request-file does not exist. I suppose it is specific to the library, which is used by filenotify on Mac OS, or it is specific to the filesystem itself. So, if you have any ideas, I will be very thankful

Thank you!

Hi!

I just wanted to say thank you for your calibredb hotkeys, huge time saver for me!

Best wishes and happy new year!

(unpin! org) (package! org-contrib) recipe error

This snippet at Language Configuration -> Packages -> Org itself

#+begin_src emacs-lisp :tangle packages.el :noweb no-export
<<org-pkg-statement()>>
(unpin! org) ; there be bugs
(package! org-contrib
:recipe (:host nil :repo "https://git.sr.ht/~bzg/org-contrib"
:files ("lisp/*.el"))
:pin "6422b265f1150204f024e33d54f2dcfd8323005c")
#+end_src

Causes the following error after tangling and reloading doom: https://pastebin.com/vi0WeVwY

Deleting it lets you be able to reload the config successfuly afterwards

Template for splash screen

I love most of your config. especially the exporting to HTML part.
But even more than that I like the splash screen.
I see that you are using the blackholes-lines-template.svg for generating your splash screen, can you point me to the right file for it?

Cannot find pdftotext file or directory

After a clean install (Only change made was removing the snippet from #40) and doom sync without errors, it was not until restarting emacs with SPC q R the following error appeared asking for pdftotext:

Warning (initialization): An error occurred while loading ‘/home/jx/.emacs.d/.local/etc/@/init.28.elc’:

Error caused by user's config or system: /home/jx/.config/doom/config.el, (file-missing Cannot open load file No existe el fichero o el directorio pdftotext)

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace. Disable showing Disable logging

Then I saw that it was installed as a local repo and the ~/.config/doom/lisp/pdftotext lisp folder was empty.

I tried cloning this repo into this folder but after doom sync and restarting emacs the error is still there.

Doom doctor gives no output about it (which makes me thing it's not that bad?).

Currently, ~/.config/doom directory structure looks like this: https://pastebin.com/tyT8cWRa (only change was ~/.config/doom/lisp/pdftotext).

I suspect that, given this snippet of code:

#+begin_src emacs-lisp :tangle (if (executable-find "pdftotext") "packages.el" "no")
(package! pdftotext :recipe (:local-repo "lisp/pdftotext"))
#+end_src

It's trying to install it from lisp/pdftotext but somehow it doesn't see the files?

Edit: Config loads successfully after SPC h r r even though it gives the following Warning (initialization):

Warning (initialization): An error occurred while loading ‘/home/jx/.emacs.d/.local/etc/@/init.28.elc’:

Error caused by user's config or system: /home/jx/.config/doom/config.el, (wrong-type-argument consp nil)

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace. Disable showing Disable logging

Running emacs --debug-init opens a buffer with the following output: https://pastebin.com/4ajsu6Je

Commenting out the whole Language configuration -> PDF -> Terminal viewing module lets do doom/reload and SPC q R to start a new emacs session without any errors nor warnings (which is awesome 😄 ).

Just in case I redid emacs --debug-init to check things out and this was the output: https://pastebin.com/64Bujzzb.

Notice how there re only two problems: with beamer and latex exports. I don't know how important they are, guess I'll see in the future.

Edit: It is not until I modify and SPC h r r the config that (even though it finishes with "Config successfully reloaded!" the following minibuffer appears:

Warning (initialization): An error occurred while loading ‘/home/jx/.emacs.d/.local/etc/@/init.28.elc’:

Error caused by user's config or system: /home/jx/.config/doom/config.el, (wrong-type-argument consp nil)

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace. Disable showing Disable logging

Might I disable the showing / logging? Would it be problematic?

`vertico--exhibit` post-command-hook error with `marginalia` configuration and `doom-homage-white`

Hi,

first of all - thank you for the amazing configuration file and for it being really well documented. I have lifted some parts here and there and they've been incredibly helpful.

Now onto the issue. I had some time ago taken the part from the marginalia configuration regarding the marginalia-annotator-registry for making it look nicer - which is working perfectly fine. I was trying out some themes and noticed that if I changed it to doom-homage-white I would seem to get Error in post-command-hook (vertico--exhibit): (wrong-type-argument sequencep unspecified) as an error for anything requiring a completion window (i.e recent files etc). From bisecting my config it seems to be that the marginalia function that I had lifted from your config.

(The relevant part)

(after! marginalia
  (setq marginalia-censor-variables nil)

  (defadvice! +marginalia--anotate-local-file-colorful (cand)
    "Just a more colourful version of `marginalia--anotate-local-file'."
    :override #'marginalia--annotate-local-file
    (when-let (attrs (file-attributes (substitute-in-file-name
                                       (marginalia--full-candidate cand))
                                      'integer))
      (marginalia--fields
       ((marginalia--file-owner attrs)
        :width 12 :face 'marginalia-file-owner)
       ((marginalia--file-modes attrs))
       ((+marginalia-file-size-colorful (file-attribute-size attrs))
        :width 7)
       ((+marginalia--time-colorful (file-attribute-modification-time attrs))
        :width 12))))

  (defun +marginalia--time-colorful (time)
    (let* ((seconds (float-time (time-subtract (current-time) time)))
           (color (doom-blend
                   (face-attribute 'marginalia-date :foreground nil t)
                   (face-attribute 'marginalia-documentation :foreground nil t)
                   (/ 1.0 (log (+ 3 (/ (+ 1 seconds) 345600.0)))))))
      ;; 1 - log(3 + 1/(days + 1)) % grey
      (propertize (marginalia--time time) 'face (list :foreground color))))

  (defun +marginalia-file-size-colorful (size)
    (let* ((size-index (/ (log10 (+ 1 size)) 7.0))
           (color (if (< size-index 10000000) ; 10m
                      (doom-blend 'orange 'green size-index)
                    (doom-blend 'red 'orange (- size-index 1)))))
      (propertize (file-size-human-readable size) 'face (list :foreground color)))))

I had tried debugging it a bit, but except that error I wasn't able to get much further. It could also be related to following emacs-master, so I'll poke around some more. So far it seems to happen also launching the doom sandbox without my configuration but just running the marginalia addition. If this issue is irrelevant feel free to close it - just wanted to let you know incase somebody else might have the same problem or if it pops up in the future.

Steps to Reproduce

  1. Run/Load marignalia function (either in sandbox or normally)
  2. Load doom-homage-white theme
  3. Try to load recent files i.e SPC f r
  4. Error in post-command-hook (vertico--exhibit): (wrong-type-argument sequencep unspecified)

Doom Version: v22.06.0-dev (most recent version as of this comment)
Emacs Version: 29.0.50

Can't run second step of the installation.

After

emacs --batch --eval "(progn (require 'org) (setq org-confirm-babel-evaluate nil) (org-babel-tangle-file "~/.config/doom/config.org"))"

This happens : https://pastebin.com/R5xiMbe0

Previously, as I thought this only tangled the files so the *.el files could get generated, I did it manually. But maybe I should have started questioning why I could not run this in the first place.

Trying to see if I have something bad in my end.

I don't think `cargo-script` runs rust blocks by babel?

Hi @tecosaur! Thanks for publishing your emacs config, this is a fantastic resource for newbies like me! 🙏

However, I don't think this statement is correct:

The cargo-script rust crate is required for evaluation of rust blocks by babel.
https://github.com/tecosaur/emacs-config/master/config.org#L266

I don't see cargo script or ob-rust used in any of your config:

λ ack ob-rust
config.html
3469:As described in the <span class='acr'>README</span> for <a href="https://github.com/micanzhang/ob-rust">ob-rust</a>. Like <code>delta</code>, this can just be installed

config.org
267:  As described in the README for [[https://github.com/micanzhang/ob-rust][ob-rust]]. Like ~delta~, this can just be installed

λ ack cargo-script
config.html
3468:The <kbd>cargo-script</kbd> rust crate is required for evaluation of rust blocks by babel.
3477:<pre class="src src-shell">cargo install cargo-script

config.org
266:+ The =cargo-script= rust crate is required for evaluation of rust blocks by babel.
269:  #+begin_src shell :eval no :tangle (if (executable-find "cargo-script") "no" "setup.sh")
270:cargo install cargo-script

I REALLY WANT to be able to run rust blocks using cargo-script! It'd be so great to be able to use crates in org src blocks. So if you know how to do this, I'd be very grateful if you update your documentation or let me know 😁

Error Installation

Error Installation, its look likes file .config/doom/setup.sh not found

Screenshot 2023-02-27 at 03 20 06
Screenshot 2023-02-27 at 03 22 19

thanks

:tangle no produces a weird tangling behavior

Hello, and thanks a lot for making your amazing config this readable and friendly :)
I am learning a lot but I am still struggling on the "Systemd daemon" part with no success.

Although I understood how you leveraged the org-mode literate programming powers, I noticed a weird behavior with a source block:

#+begin_src shell :tangle (if (string= "enabled\n" (shell-command-to-string "systemctl --user is-enabled emacs.service")) "no" "setup.sh")
systemctl --user enable emacs.service
#+end_src

Basically, this one tangles systemctl --user enable emacs.service to setup.sh only if the service is not already enabled, and that works well to create setup.sh the first time.

But then, when I save my config.org after an edit and look at config.el, this very code block was tangled to:

;; [[file:config.org::*prompt to run setup script][prompt to run setup script:2]]
  - ;; Setup script is empty
;; prompt to run setup script:2 ends here

and the "-" causes a (void-variable -) error at the next reboot.
Note: I have not incorporated your "Asynchronous config tangling" part.

Strangely, when I run doom sync, the tangling of this block becomes:

;; [[file:config.org::*prompt to run setup script][prompt to run setup script:2]]
nil
;; prompt to run setup script:2 ends here

Do you have any idea why and how it could be avoided?
If so, could you please demystify this for me? :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.