Skip to content

Commit

Permalink
added auto-loads to scad-mode.el so when it is installed via
Browse files Browse the repository at this point in the history
elpa/marmalade it sets everything up for the user so they don't have
to edit their init.el file.

scad-mode should turn on automatically for any files that end in .scad
  • Loading branch information
jasonblewis committed Jul 9, 2012
1 parent b960247 commit ac0b7f1
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions contrib/scad-mode.el
Expand Up @@ -4,8 +4,9 @@
;; Maintainer: Len Trigg <lenbok@gmail.com>
;; Created: March 2010
;; Modified: 06 July 2012
;; Keywords: languages
;; URL: https://raw.github.com/openscad/openscad/master/contrib/scad-mode.el
;; Version: $Revision: 89 $
;; Version: 90.0

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
Expand All @@ -24,19 +25,27 @@

;;; Commentary:
;;
;; This is a separate mode to implement the SCAD constructs and
;; font-locking.
;; This is a major-mode to implement the SCAD constructs and
;; font-locking for openscad
;;
;; To use, insert the following into your emacs startup:
;; If installing manually, insert the following into your emacs startup:
;;
;; (autoload 'scad-mode "scad-mode" "Major mode for editing SCAD code." t)
;; (add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode))
;;
;; or
;;
;; install from marmalade: http://marmalade-repo.org/
;; M-x install-package <ENTER> scad-mode <ENTER>


;;; To Do:
;; - Support for background/debug/root/disable modifiers
;; - Font lock of non-built-in function calls

;;; Autoload mode trigger
;;; Code:

;;;###autoload
(add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode))

(defcustom scad-command
Expand Down

0 comments on commit ac0b7f1

Please sign in to comment.