Skip to content

Instantly share code, notes, and snippets.

@purcell
Created August 21, 2013 16:55
Show Gist options
  • Save purcell/6297044 to your computer and use it in GitHub Desktop.
Save purcell/6297044 to your computer and use it in GitHub Desktop.
Patch for thrift.el
diff -c /tmp/b/thrift.el /tmp/a/thrift.el
*** /tmp/b/thrift.el 2013-08-21 17:54:54.000000000 +0100
--- /tmp/a/thrift.el 2013-08-21 17:50:04.000000000 +0100
***************
*** 1,7 ****
! ;;; thrift.el --- Major mode for Apache Thrift files
!
! ;; Keywords: files
!
;; Licensed to the Apache Software Foundation (ASF) under one
;; or more contributor license agreements. See the NOTICE file
;; distributed with this work for additional information
--- 1,4 ----
! ;;
;; Licensed to the Apache Software Foundation (ASF) under one
;; or more contributor license agreements. See the NOTICE file
;; distributed with this work for additional information
***************
*** 18,35 ****
;; KIND, either express or implied. See the License for the
;; specific language governing permissions and limitations
;; under the License.
!
! ;;; Commentary:
!
! ;;
!
! ;;; Code:
(require 'font-lock)
(defvar thrift-mode-hook nil)
-
- ;;;###autoload
(add-to-list 'auto-mode-alist '("\\.thrift\\'" . thrift-mode))
(defvar thrift-indent-level 2
--- 15,25 ----
;; KIND, either express or implied. See the License for the
;; specific language governing permissions and limitations
;; under the License.
! ;;
(require 'font-lock)
(defvar thrift-mode-hook nil)
(add-to-list 'auto-mode-alist '("\\.thrift\\'" . thrift-mode))
(defvar thrift-indent-level 2
***************
*** 122,128 ****
thrift-mode-syntax-table)
"Syntax table for thrift-mode")
- ;;;###autoload
(defun thrift-mode ()
"Mode for editing Thrift files"
(interactive)
--- 112,117 ----
***************
*** 134,139 ****
(run-hooks 'thrift-mode-hook)
(set (make-local-variable 'indent-line-function) 'thrift-indent-line)
)
!
! (provide 'thrift)
! ;;; thrift.el ends here
--- 123,126 ----
(run-hooks 'thrift-mode-hook)
(set (make-local-variable 'indent-line-function) 'thrift-indent-line)
)
! (provide 'thrift-mode)
Diff finished. Wed Aug 21 17:55:08 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment