Skip to content
Snippets Groups Projects
Commit 3560a053 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

ported from pd-l2ork git: commit ebc4d9cf4199f9b141168c71c4da309be1f61c95

*forgot to add two files
parent a666e4f7
No related branches found
No related tags found
No related merge requests found
packages/linux_make/text-x-pd-l2ork.png

6.59 KiB

;;; pd-l2ork-mode.el --- major mode for editing Pd configuration files
;; Author: Hans-Christoph Steiner <hans@at.or.at>
;; Adapted for pd-l2ork: Ivica Ico Bukvic <ico@vt.edu>
;; Keywords: languages, faces
;; Last edit:
;; Version: 1.0.1
;; This file is an add-on for XEmacs or GNU Emacs (not tested with the latter).
;;
;; It is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.x
;;
;; It is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with your copy of Emacs; see the file COPYING. If not, write
;; to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.
;;; Commentary:
;;
;; There isn't really much to say. The list of keywords was derived from
;; the Pd there may be some errors or omissions.
;;
;; There are currently no local keybindings defined, but the hooks are
;; there in the event that anyone gets around to adding any.
;;
;; To enable automatic selection of this mode when appropriate files are
;; visited, add the following to your favourite site or personal Emacs
;; configuration file:
;;
;; (autoload 'pd-l2ork-mode "pd-l2ork-mode" "autoloaded" t)
;; (add-to-list 'auto-mode-alist '("\\.pat$" . pd-l2ork-mode))
;; (add-to-list 'auto-mode-alist '("\\.pd$" . pd-l2ork-mode))
;;
;;; Code:
;; Requires
(require 'generic-x)
(define-generic-mode 'pd-l2ork-mode
nil
'("osc~" "random" "route" "trigger")
'(("#X \\([^ ]+\\) " . 'font-lock-function-name-face)
(";" . 'font-lock-warning-face))
'(".pd\\'" ".pat\\'")
nil
"Major mode for editing Pd files")
;;; pd-l2ork-mode.el ends here
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment