Commit d8724d86572c
Changed files (3)
tools
emacs
config
users
vincent
dev
tools/emacs/config/config-org.el
@@ -129,7 +129,13 @@
org-image-actual-width nil
org-startup-with-inline-images nil
org-list-demote-modify-bullet '(("+" . "-") ("-" . "+"))
- org-catch-invisible-edits 'error)
+ org-catch-invisible-edits 'error
+ ;; Put theses into a minor mode
+ org-indent-indentation-per-level 1
+ org-cycle-separator-lines 1
+ org-adapt-indentation nil
+ org-hide-leading-stars t
+ org-hide-emphasis-markers t)
(setcar (nthcdr 4 org-emphasis-regexp-components) 10)
:hook (org-mode . vde/org-mode-hook))
@@ -482,6 +488,17 @@ Switch projects and subprojects from STARTED back to TODO"
:file-name "${slug}.private"
:head "#+TITLE: ${title}\n"
:unnarrowed t))))
+(use-package org
+ :config
+ (defun vde/tangle-all-notes ()
+ "Produce files from my notes folder.
+This function will attempt to tangle all org files from `org-notes-dir'. The
+assumption is that those will generate configuration file (in `~/src/home'),
+and thus keeping the configuration source up-to-date"
+ (mapc (lambda (x) (org-babel-tangle-file x))
+ (ignore-errors
+ (directory-files-recursively org-notes-dir "\.org$"))))
+ :hook ((kill-emacs-hook . vde/tangle-all-notes)))
(use-package org-journal
:commands (org-journal-new-entry org-capture)
:after (org-capture)
tools/emacs/config/config-projects.el
@@ -2,9 +2,9 @@
;;; Commentary:
;;; Project related configuration.
;;; This is mainly using projectile now, but built-in projects module seems promising for long-term.
+;;; Note: this file is autogenerated from an org-mode file.
;;; Code:
-
(use-package projectile
:commands
(projectile-ack
users/vincent/dev/emacs.nix
@@ -1,3 +1,4 @@
+# Note: this file is autogenerated from an org-mode file.
{ config, lib, pkgs, ... }:
with lib;