summaryrefslogtreecommitdiff
path: root/Pancake.hs
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-10-28 23:01:16 +0300
committerdefanor <defanor@uberspace.net>2017-10-28 23:16:05 +0300
commitdf109c1d786a9fdb89333b8ac7afccc78e424978 (patch)
tree80060102bf9bc7d9887f4fbc77e95608318aa422 /Pancake.hs
parent60790b4368518134a14166fcad535f96d05c7765 (diff)
Use plain curl for gopher by default
Though the gopher onion initiative is nice, that's an unnecessary dependency here -- better to not set by default.
Diffstat (limited to 'Pancake.hs')
-rw-r--r--Pancake.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Pancake.hs b/Pancake.hs
index 9357fa8..b637754 100644
--- a/Pancake.hs
+++ b/Pancake.hs
@@ -393,7 +393,7 @@ data Config = Config { commands :: M.Map String String
-- direction) to keep.
} deriving (Generic, Show)
--- | For configuration parsing
+-- | For configuration parsing.
instance FromJSON Config
-- | For configuration writing, particularly that of default
-- configuration if it is missing.
@@ -403,8 +403,7 @@ instance ToJSON Config
instance Default Config where
def = Config { commands = M.fromList
[ ("ssh", "scp \"${URI_REGNAME}:${URI_PATH}\" /dev/stdout")
- -- gopher://bitreich.org:70/1/onion
- , ("gopher", "torify curl \"${URI}\"")]
+ , ("gopher", "curl \"${URI}\"")]
, defaultCommand = "curl -4 -L \"${URI}\""
, externalViewers = M.fromList $
map (flip (,) "emacsclient") ["hs", "cabal", "c", "h", "el", "scm", "idr"]