diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2015-03-29 17:49:07 +0900 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2015-03-29 17:49:07 +0900 |
commit | 55d150f84f3cc9d834c2c9aca3f377c35de8d626 (patch) | |
tree | 34be6b5c3f90aaeb99ceede01258ad468b8309bd | |
parent | 8818b695b2b960fd8f26cff5b0511515b62067fe (diff) | |
download | srem-55d150f84f3cc9d834c2c9aca3f377c35de8d626.tar.gz |
Emacs args platform-independent
Replace hardcoded forward-slash with </> from System.FilePath
-rw-r--r-- | src/Utility/Emacs.hs | 3 | ||||
-rw-r--r-- | srem.cabal | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/Utility/Emacs.hs b/src/Utility/Emacs.hs index f42ea0c..2b197eb 100644 --- a/src/Utility/Emacs.hs +++ b/src/Utility/Emacs.hs @@ -10,6 +10,7 @@ import qualified Control.SremConfig as SremConfig import Data.Maybe.Read import Data.Modular import System.Directory (getHomeDirectory) +import System.FilePath ((</>)) import System.Process (readProcess) import Text.Regex.Posix ((=~)) import Types.Reminder @@ -50,6 +51,6 @@ getEmacsOutput = do makeEmacsArgs :: String -> [String] makeEmacsArgs home = [ "-batch" - , "-l", home ++ "/.emacs.d/init.el" + , "-l", home </> ".emacs.d" </> "init.el" , "-eval", "(setq org-agenda-sticky nil)" , "-eval", "(org-batch-agenda \"D\")" ] @@ -17,5 +17,6 @@ executable srem , process , regex-posix , modular-arithmetic + , filepath hs-source-dirs: src default-language: Haskell2010 |