-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from justinethomas/release-3.3
Release 3.3
- Loading branch information
Showing
5 changed files
with
365 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ | |
|
||
# Emacs backup files | ||
.#* | ||
|
||
temp.el |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
;; ----------------------------------------------------------------------------- | ||
;; Created: Fri 29 Jun 2018 00:04:07 IST | ||
;; Last-Updated: Fri 29 Jun 2018 02:22:03 IST | ||
;; | ||
;; header3-launch.el is part of header3 | ||
;; URL: https://github.com/justinethomas/header3 | ||
;; Description: Launches header3 package and sets the default values | ||
;; | ||
;; Copyright (c) 2018, Justine T Kizhakkinedath | ||
;; All rights reserved | ||
;; | ||
;; Licensed under the terms of GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 | ||
;; See LICENSE file in the project root for full information. | ||
;; ----------------------------------------------------------------------------- | ||
;; | ||
;; 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 | ||
;; the Free Software Foundation, either version 3 of the License, or | ||
;; (at your option) any later version. | ||
;; | ||
;; This program 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 this program. If not, see <http://www.gnu.org/licenses/>. | ||
;; | ||
;; ----------------------------------------------------------------------------- | ||
|
||
|
||
(defconst header-root-folder (file-name-directory load-file-name)) | ||
|
||
(defsubst header-fetch-resource-path (file) | ||
"INTERNAL FUNCTION. Get the path to the resource files" | ||
(expand-file-name file header-root-folder)) | ||
|
||
(add-to-list 'load-path (header-fetch-resource-path "")) | ||
(load "header3") | ||
|
||
;; Launch auto-update before saving the file | ||
(autoload 'auto-update-file-header "header3") | ||
(add-hook 'before-save-hook 'auto-update-file-header) | ||
|
||
(autoload 'auto-make-header "header3") | ||
|
||
;; auto-make-header uses file-header as default header. To change that check docs. | ||
(add-hook 'c-mode-common-hook 'auto-make-header) | ||
(add-hook 'clojure-mode 'auto-make-header) | ||
(add-hook 'coffee-mode 'auto-make-header) | ||
(add-hook 'emacs-lisp-mode-hook 'auto-make-header) | ||
(add-hook 'erlang-mode 'auto-make-header) | ||
(add-hook 'haskell-mode 'auto-make-header) | ||
(add-hook 'java-mode 'auto-make-header) | ||
(add-hook 'kotlin-mode 'auto-make-header) | ||
(add-hook 'python-mode-hook 'auto-make-header) | ||
(add-hook 'ruby-mode 'auto-make-header) | ||
(add-hook 'rust-mode 'auto-make-header) | ||
(add-hook 'scala-mode 'auto-make-header) | ||
(add-hook 'scheme-mode 'auto-make-header) | ||
(add-hook 'swift-mode 'auto-make-header) | ||
|
||
;; auto-make-mini-header to create mini headers | ||
(add-hook 'php-mode 'auto-make-mini-header) | ||
(add-hook 'sh-mode-hook 'auto-make-mini-header) | ||
(add-hook 'sql-mode 'auto-make-mini-header) |
Oops, something went wrong.