summaryrefslogtreecommitdiff
path: root/test/lisp/use-package
Commit message (Collapse)AuthorAgeFilesLines
...
* Whitespace fixJohn Wiegley2017-11-291-3/+1
|
* Allow :bind ("C-c C-c" . (lambda () (ding))) and #'(lambda ...)John Wiegley2017-11-291-0/+14
| | | | | Fixes https://github.com/jwiegley/use-package/issues/333 Fixes https://github.com/jwiegley/use-package/issues/461
* Allow `:diminish` with no argumentsJoe Wreschnig2017-07-081-0/+12
| | | | | | | | | | | | | | | When given no arguments, have :diminish assume it should diminish a mode named after the current package (the package’s name, with “-mode” appended, if it’s not already) to an empty string. When given only a string to diminish an implicit package name to, do not append “-mode” to the package name if it already ends with it. (This is a backwards-incompatible change if someone was diminishing a package named “foo-mode” implementing `foo-mode-mode`.) Add test cases for `use-package-normalize-diminish`. This addresses some of the redundancy mentioned in issue https://github.com/jwiegley/use-package/issues/288.
* Allow :major as the third argument in :delight callsJoe Wreschnig2017-07-021-1/+3
|
* Allow multiple :delight arguments, or omitting the mode. ()Joe Wreschnig2017-07-021-0/+19
| | | | | | | | | | | | | This allows using forms such as (use-package foo :delight) ;; => (delight 'foo-mode) (use-package foo :delight " f") ;; => (delight 'foo-mode " f") (use-package foo :delight (a-mode) (b-mode " b") ;; => (delight 'a-mode) (delight 'b-mode " b") This brings support for `:delight` in line with `:diminish`. GitHub-reference: https://github.com/jwiegley/use-package/issues/477
* Don't allow implicit package name arg for bindersNoam Postavsky2016-10-311-0/+2
| | | | | | | | It's unlikely that (use-package foopkg :bind "<some-key>") intendes to bind <some-key> to 'foopkg command.
* Don't allow nil as a mode functionNoam Postavsky2016-10-311-0/+2
| | | | | | | This means (use-package foopkg :mode (".foo")) will add (".foo" . foopkg) into auto-mode-alist instead of the broken (".foo" . nil), this is more consistent with the behaviour of (use-package foopkg :mode (".foo" ".bar")).
* Refactor pair normalizers; add tests for themNoam Postavsky2016-10-311-0/+21
| | | | | | This is not a pure refactoring, it also fixes a bug where :bind ([keysym] . "string") would actually bind keysym to nil (i.e., unbind it). It now binds to "string" as expected.
* Remove obsolete mplist testsNoam Postavsky2016-10-311-18/+0
| | | | | The mplist functions were removed in the 2.0 refactoring (4ae584f3ff0e9bda05420ec3b8598e59374b0899).
* Add some variable settings to use-package-tests.el, thanks tarsiusJohn Wiegley2016-02-251-0/+2
|
* Move tests to separate fileNicolas Richard2014-02-121-0/+50