Browse Source

fixes to make org-roam work on windows

master
Marc Pohling 1 year ago
parent
commit
38131fba6c
1 changed files with 13 additions and 5 deletions
  1. 18
      config.org

18
config.org

@ -1,4 +1,4 @@
#+TITLE: Emacs configuration file
#+TITLE: Emacs configuration file
#+AUTHOR: Marc
#+BABEL: :cache yes
#+PROPERTY: header-args :tangle yes
@ -48,9 +48,12 @@ asynchronously."
(or (not (process-live-p (get-process "tangle-process")))
(y-or-n-p "\"me/tangle-config\" is running; kill it? "))))
;; tangle config asynchronously
(me/async-process
(format "emacs %s --batch --eval '(org-babel-tangle nil \"%s\")'" config-org config-el)
"tangle-process")
;; async only on linux because bash is called
(if *sys/linux*
(me/async-process
(format "emacs %s --batch --eval '(org-babel-tangle nil \"%s\")'" config-org config-el)
"tangle-process")
(format "emacs %s --batch --eval '(org-babel-tangle nil \"%s\")'" config-org config-el))
(message "reloading user-init-file")
(load-file config-el))
@ -412,7 +415,8 @@ Some windows specific stuff
; (progn
; (setq gc-cons-threshold (* 511 1024 1024)
; gc-cons-percentage 0.5
; garbage-collection-messages t)
; garbage-collection-messages t
; (run-with-idle-timer 5 t #'garbage-collect))
(when (boundp 'w32-pipe-read-delay)
(setq w32-pipe-read-delay 0))
@ -540,6 +544,7 @@ Orderless orders the suggestions by recency. The package prescient orders by fre
#+begin_src emacs-lisp
;; completion ui
(use-package vertico
:ensure t
:init
(vertico-mode))
@ -1038,6 +1043,9 @@ org-roam-db-sync
:ensure t
:init
(setq org-roam-v2-ack t)
(if *sys/windows*
(setq org-roam-database-connector 'sqlite3
exec-path (append exec-path '("P:/Tools/sqlite"))))'
:custom
(org-roam-directory MY--PATH_ORG_ROAM)
(org-roam-completion-everywhere t)

Loading…
Cancel
Save