home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d8724d86572c9e8c0f1d0abcfb8429aa153226dd
parent 590da016f7cae0067aab3560cad25feee814ec1d
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue, 18 Aug 2020 18:17:14 +0200

Testing auto-generation

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-org.el | 19++++++++++++++++++-
Mtools/emacs/config/config-projects.el | 2+-
Musers/vincent/dev/emacs.nix | 1+
3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/tools/emacs/config/config-org.el b/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) diff --git a/tools/emacs/config/config-projects.el b/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 diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -1,3 +1,4 @@ +# Note: this file is autogenerated from an org-mode file. { config, lib, pkgs, ... }: with lib;