From e7e3297131e580063a6685b51f4a266338ad377e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Philip=20K.F.=20Ho=CC=88lzenspies"?= <pkfh@st-andrews.ac.uk>
Date: Tue, 7 Aug 2012 10:24:28 +0100
Subject: [PATCH] Made the location for haskellmode.config configurable
through g:haskellmode_configdir
---
compiler/ghc.vim | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/compiler/ghc.vim b/compiler/ghc.vim
index b50bc29..5a2cb82 100644
|
a
|
b
|
|
| 447 | 447 | " move to autoload? |
| 448 | 448 | " should we keep a history of GHC versions encountered? |
| 449 | 449 | function! GHC_SaveConfig() |
| 450 | | let vimdir = expand('~').'/'.'.vim' |
| 451 | | let config = vimdir.'/haskellmode.config' |
| 452 | | if !isdirectory(vimdir) |
| 453 | | call mkdir(vimdir) |
| | 450 | if exists("g:haskellmode_configdir") && filewritable(g:haskellmode_configdir) |
| | 451 | let cnfdir = g:haskellmode_configdir |
| | 452 | else |
| | 453 | let cnfdir = expand('~').'/'.'.vim' |
| | 454 | endif |
| | 455 | let config = cnfdir.'/haskellmode.config' |
| | 456 | if !isdirectory(cnfdir) |
| | 457 | call mkdir(cnfdir) |
| 454 | 458 | endif |
| 455 | 459 | let entries = ['-- '.g:ghc_version] |
| 456 | 460 | for l in s:ghc_supported_languages |