Commits

Niklas Hambüchen  committed a4c94d5

Add settings and keymap file
---
Default.sublime-commands | 16 ++++++++++++++++
Default.sublime-keymap | 2 ++
SublimeHaskell.sublime-settings | 2 ++
sublime_haskell_common.py | 6 ++++++
4 files changed, 26 insertions(+), 0 deletions(-)
create mode 100644 Default.sublime-commands
create mode 100644 Default.sublime-keymap
create mode 100644 SublimeHaskell.sublime-settings

  • Participants
  • Parent commits 24823d5

Comments (0)

Files changed (4)

File Default.sublime-commands

+[
+    {
+        "caption": "Preferences: SublimeHaskell Settings – Default",
+        "command": "open_file", "args":
+        {
+            "file": "${packages}/SublimeHaskell/SublimeHaskell.sublime-settings"
+        }
+    },
+    {
+        "caption": "Preferences: SublimeHaskell Settings – User",
+        "command": "open_file", "args":
+        {
+            "file": "${packages}/User/SublimeHaskell.sublime-settings"
+        }
+    }
+]

File Default.sublime-keymap

+[
+]

File SublimeHaskell.sublime-settings

+{
+}

File sublime_haskell_common.py

     path = os.path.abspath(path)
     other_path = os.path.abspath(other_path)
     return path == other_path
+
+def get_settings():
+    return sublime.load_settings("SublimeHaskell.sublime-settings")
+
+def get_setting(key, default=None):
+    return get_settings().get(key, default)