From df109c1d786a9fdb89333b8ac7afccc78e424978 Mon Sep 17 00:00:00 2001 From: defanor Date: Sat, 28 Oct 2017 23:01:16 +0300 Subject: 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. --- Pancake.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Pancake.hs') 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"] -- cgit v1.2.3