-;;; aggressive-indent.el --- Minor mode to aggressively keep your code always indented
+;;; aggressive-indent.el --- Minor mode to aggressively keep your code always indented -*- lexical-binding:t -*-
-;; Copyright (C) 2014 Artur Malabarba <bruce.connor.am@gmail.com>
+;; Copyright (C) 2014, 2015 Free Software Foundation, Inc
;; Author: Artur Malabarba <emacs@endlessparentheses.com>
;; URL: http://github.com/Malabarba/aggressive-indent-mode
-;; Version: 1.0
+;; Version: 1.0.1
;; Package-Requires: ((emacs "24.1") (names "20150125.9") (cl-lib "0.5"))
;; Keywords: indent lisp maint tools
;; Prefix: aggressive-indent
;;
;; 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 2
+;; 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,
;;; Code:
(require 'cl-lib)
+(eval-when-compile (require 'names))
;;;###autoload
(define-namespace aggressive-indent-
:group indent
-(defconst version (lm-version) "Version of the aggressive-indent.el package.")
(defun bug-report ()
"Opens github issues page in a web browser. Please send any bugs you find.
Please include your Emacs and `aggressive-indent' versions."
(interactive)
+ (require 'lisp-mnt)
(message "Your `aggressive-indent-version' is: %s, and your emacs version is: %s.
Please include this in your report!"
- version emacs-version)
+ (lm-version (find-library-name "aggressive-indent"))
+ emacs-version)
(browse-url "https://github.com/Bruce-Connor/aggressive-indent-mode/issues/new"))
\f
bibtex-mode
cider-repl-mode
coffee-mode
+ comint-mode
conf-mode
Custom-mode
diff-mode
(string-match "\\`[[:blank:]]*\n?\\'" (or (thing-at-point 'line) ""))
(let ((sp (syntax-ppss)))
;; Comments.
- (or (and (not aggresive-indent-comments-too) (elt sp 4))
+ (or (and (not aggressive-indent-comments-too) (elt sp 4))
;; Strings.
(elt sp 3))))
"List of forms which prevent indentation when they evaluate to non-nil.