summaryrefslogtreecommitdiff
path: root/Pancake.hs
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-11-01 06:10:16 +0300
committerdefanor <defanor@uberspace.net>2017-11-01 06:10:16 +0300
commit24dabb5a30aabbbb34b3e22208589c30c1bcc3e9 (patch)
treec387396aabb7b5f132acc3ae614cd0e3b14535ab /Pancake.hs
parente17fa56246f857eea2b83d497ff740dbea2f5b6f (diff)
Don't rely on INSIDE_EMACS
It is getting set by M-x term and shell as well, so it's wrong to decide whether to run in the embedded mode based on it.
Diffstat (limited to 'Pancake.hs')
-rw-r--r--Pancake.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Pancake.hs b/Pancake.hs
index 9647186..1573d12 100644
--- a/Pancake.hs
+++ b/Pancake.hs
@@ -770,7 +770,6 @@ eventLoop = do
main :: IO ()
main = do
args <- getArgs
- insideEmacs <- lookupEnv "INSIDE_EMACS"
_ <- runStateT (loadConfig >> eventLoop) $
- LS ([],[]) 0 [] def (isJust insideEmacs || "--embedded" `elem` args)
+ LS ([],[]) 0 [] def ("--embedded" `elem` args)
pure ()