pkg update and first config fix

org-brain not working, add org-roam
This commit is contained in:
2022-12-19 23:02:34 +01:00
parent 02b3e07185
commit 82f05baffe
885 changed files with 356098 additions and 36993 deletions

View File

@@ -1,4 +0,0 @@
/.cask
/makefile-local
/persist.html
/dist/

View File

@@ -1,6 +0,0 @@
(source melpa-stable)
(package-file "persist.el")
(development
(depends-on "assess"))

View File

@@ -1,29 +0,0 @@
EMACS ?= emacs
CASK ?= cask
-include makefile-local
ifdef EMACS
EMACS_ENV=EMACS=$(EMACS)
endif
test: install just-test
just-test:
$(EMACS_ENV) $(CASK) emacs --batch -q \
--directory=. \
--load assess-discover.el \
--eval '(assess-discover-run-and-exit-batch t)'
install:
$(EMACS_ENV) $(CASK) install
html:
texi2html persist.texi
push-elpa:
git push elpa HEAD:externals/persist
pull-elpa:
git pull elpa externals/persist

View File

@@ -1,2 +1,2 @@
;; Generated package description from persist.el -*- no-byte-compile: t -*-
(define-package "persist" "0.4" "Persist Variables between Emacs Sessions" 'nil :url "http://elpa.gnu.org/packages/persist.html" :authors '(("Phillip Lord" . "phillip.lord@russet.org.uk")) :maintainer '("Phillip Lord" . "phillip.lord@russet.org.uk"))
(define-package "persist" "0.5" "Persist Variables between Emacs Sessions" 'nil :commit "25d675307c03f720e592c3dc9a5a0ae8db0836eb" :url "https://elpa.gnu.org/packages/persist.html" :authors '(("Phillip Lord" . "phillip.lord@russet.org.uk")) :maintainer '("Phillip Lord" . "phillip.lord@russet.org.uk"))

View File

@@ -5,7 +5,7 @@
;; Author: Phillip Lord <phillip.lord@russet.org.uk>
;; Maintainer: Phillip Lord <phillip.lord@russet.org.uk>
;; Package-Type: multi
;; Version: 0.4
;; Version: 0.5
;; The contents of this file are subject to the GPL License, Version 3.0.
@@ -132,18 +132,26 @@ variables persist automatically when Emacs exits."
(unless (persist--persistant-p symbol)
(error (format
"Symbol %s is not persistant" symbol)))
(unless (equal (symbol-value symbol)
(persist-default symbol))
(let ((dir-loc
(file-name-directory
(persist--file-location symbol))))
(unless (file-exists-p dir-loc)
(mkdir dir-loc)))
(with-temp-buffer
(print (symbol-value symbol) (current-buffer))
(write-region (point-min) (point-max)
(persist--file-location symbol)
nil 'quiet))))
(let ((symbol-file-loc (persist--file-location symbol)))
(if (equal (symbol-value symbol)
(persist-default symbol))
(when (file-exists-p symbol-file-loc)
(delete-file symbol-file-loc))
(let ((dir-loc
(file-name-directory symbol-file-loc)))
(unless (file-exists-p dir-loc)
(mkdir dir-loc))
(with-temp-buffer
(let (print-level
print-length
print-quoted
(print-escape-control-characters t)
(print-escape-nonascii t)
(print-circle t))
(print (symbol-value symbol) (current-buffer)))
(write-region (point-min) (point-max)
symbol-file-loc
nil 'quiet))))))
(defun persist-default (symbol)
"Return the default value for SYMBOL."

View File

@@ -1,6 +0,0 @@
## what ever we called, don't do it here
default:
$(MAKE) -C ..
$(MAKECMDGOALS):
$(MAKE) -C .. $(MAKECMDGOALS)

View File

@@ -44,6 +44,9 @@
(with-temp-buffer
(insert-file-contents (persist--file-location sym))
(buffer-string))))
(set sym 10)
(persist-save sym)
(should-not (file-exists-p (persist--file-location sym)))
(should-error
(persist-save 'fred)))))