]> git.neil.brown.name Git - edlib.git/commitdiff
Move my personal configuration out of the git tree.
authorNeilBrown <neil@brown.name>
Fri, 26 May 2023 03:48:50 +0000 (13:48 +1000)
committerNeilBrown <neil@brown.name>
Fri, 26 May 2023 22:18:43 +0000 (08:18 +1000)
Have config.py load $HOME/.config/edlib/config.py, and move the config
that is specific to me into there.

Signed-off-by: NeilBrown <neil@brown.name>
DOC/TODO.md
python/config.py

index af34fec18a2b8777ab7db9d2f6d7c110862542ab..485f2ecc23ec15db66ebaf610022dfc569d27432 100644 (file)
@@ -56,12 +56,14 @@ Current priorities
 Bugs to be fixed
 ----------------
 
+- [ ] notmuch: "reply" should clear unread/new flags.
 - [X] transparent images appear in email with horiz lines
 - [ ] Replying to w3m/html mail results in unsightly markup in reply
 - [ ] converting email parts with external code should be async
 - [X] fill:end-re should default to fill:start-re
-- [ ] md-mode should set the fill re-s don't rely on config
-- [ ] config.py should load from $HOME/.config/edlib/config.py
+- [X] md-mode should set the fill re-s don't rely on config - there
+      isn't an md-mode yet!
+- [X] config.py should load from $HOME/.config/edlib/config.py
         exec(read())
 - [ ] lang-python should put each mode in a separate module
       Maybe PyImport_ExecCodeModuleEx() after reading and compile()ing
index 60afba9bf2e7456296ba843b5887e71818397515..e51548c159cecd0fa71c3275b32f521b017b7bf6 100644 (file)
@@ -49,9 +49,11 @@ editor.call("global-load-module", "display-pygtk")
 editor.call("global-load-module", "display-x11-xcb")
 editor.call("global-load-module", "lib-x11selection-xcb")
 
-editor.call("global-set-attr", "config:make-make:/home/git/linux",
-            "kmake -k %%")
-editor.call("global-set-attr", "config:make-make:/home/kernels/",
-            "smake -k %%")
-editor.call("global-set-attr", "config:make-quilt:/home/kernels/",
-            "grep -rnH --exclude-dir=.pc --exclude-dir=O --exclude-dir=M ")
+if 'HOME' in os.environ:
+    path = os.environ['HOME'] + "/.config/edlib/config.py"
+try:
+    with open(path, 'r') as fp:
+        out = fp.read()
+        exec(out)
+except:
+    pass