stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] [PATCH] Add ~/.stumpwm.d/config as an init-file option


From: Edward Trumbo
Subject: Re: [STUMP] [PATCH] Add ~/.stumpwm.d/config as an init-file option
Date: Tue, 03 Feb 2015 18:29:52 -0500

This is a revised version of my patch, incorporating J David Smith's
suggestion to use the more Lispy/Emacsey "~/.stumpwm.d/init.lisp" as the
option for an init file.

On a related note, I'd like to see the options for init-file placement
get more "press". Our documentation (Info/Wiki/etc.) doesn't mention
this anywhere, to my knowledge. I'd like to amend the relevant section
of the wiki with some references to it, and possibly even add a page in
the manual. First, I think we should see whether this patch merits
inclusion in the code base. 

---
 stumpwm.lisp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/stumpwm.lisp b/stumpwm.lisp
index 0a38fef..dd13023 100644
--- a/stumpwm.lisp
+++ b/stumpwm.lisp
@@ -43,10 +43,12 @@ further up. "
                  dir)))
          (user-rc
            (probe-file (merge-pathnames #p".stumpwmrc" 
(user-homedir-pathname))))
+         (dir-rc
+           (probe-file (merge-pathnames #p".stumpwm.d/init.lisp" 
(user-homedir-pathname))))
          (conf-rc
            (probe-file (merge-pathnames #p"stumpwm/config" xdg-config-dir)))
          (etc-rc (probe-file #p"/etc/stumpwmrc"))
-         (rc (or user-rc conf-rc etc-rc)))
+         (rc (or user-rc dir-rc conf-rc etc-rc)))
     (if rc
         (if catch-errors
             (handler-case (load rc)
-- 
1.8.4


-- 
Edward Trumbo

"In Emacs Veritas."


Edward Trumbo <address@hidden> writes:

> Thanks, and I agree ~/.stumpwm.d/init.lisp would be better.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]