Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding SML mode

  • Loading branch information...
commit f744ca37f53d76ca88a556ebf80daf7bec10d5e4 1 parent add2caf
@pgrkr pgrkr authored
Showing with 16 additions and 4 deletions.
  1. +3 −0  .gitmodules
  2. +12 −4 init.el
  3. +1 −0  packages/sml-mode
View
3  .gitmodules
@@ -118,3 +118,6 @@
[submodule "packages/python-pylint"]
path = packages/python-pylint
url = https://github.com/emacsmirror/python-pylint.git
+[submodule "packages/sml-mode"]
+ path = packages/sml-mode
+ url = https://github.com/emacsmirror/sml-mode.git
View
16 init.el
@@ -1,8 +1,8 @@
-;; When started as a GUI app on Mac OS X, Emacs doesn't pick up environment variables
-(add-to-list 'exec-path (getenv "PATH"))
+;; When started as a GUI app on Mac OS X, Emacs doesn't pick up environment variables. I use ZSH. Change for your shell
-;; Mac Hack to add these folders to the path
-(push "/usr/local/bin" exec-path)
+(setq path (shell-command-to-string "source $HOME/.zshrc && printf $PATH"))
+(setenv "PATH" path)
+(setq exec-path (split-string path ":"))
;; All the packages should be placed under the packages folder. Add them all.
(mapc (lambda (dir)
@@ -236,6 +236,14 @@
;; Load up Python settings
(require 'python-settings)
+(autoload 'sml-mode "sml-mode" "Major mode for editing SML." t)
+(autoload 'run-sml "sml-proc" "Run an inferior SML process." t)
+(setq auto-mode-alist
+ (cons '("\.sml$" . sml-mode)
+ (cons '("\.sig$" . sml-mode)
+ auto-mode-alist)))
+(setq sml-program-name "sml")
+
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
1  packages/sml-mode
@@ -0,0 +1 @@
+Subproject commit dca346eade01d238cd76e15ef361d8783a5c2ed7
Please sign in to comment.
Something went wrong with that request. Please try again.