Skip to content

Commit db2f856

Browse files
committed
Merge pull request #364 from clojure-emacs/indent-style
A couple of bug fixes
2 parents 6ee1b29 + 223ac32 commit db2f856

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Bugs fixed
66

7+
* [#361](https://github.com/clojure-emacs/clojure-mode/issues/361): Fixed a typo preventing the highlighting of fn names that don't start with `t`.
78
* [#360](https://github.com/clojure-emacs/clojure-mode/issues/360): `clojure-align` now reindents after aligning, which also fixes an issue with nested alignings.
89

910
### New features

clojure-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ any number of matches of `clojure--sym-forbidden-rest-chars'."))
508508
;; Possibly type
509509
"\\(?:#?^\\sw+[ \t]*\\)?"
510510
;; Possibly name
511-
"\\(t\\sw+\\)?" )
511+
"\\(\\sw+\\)?" )
512512
(1 font-lock-keyword-face)
513513
(2 font-lock-function-name-face nil t))
514514
;; lambda arguments - %, %1, %2, etc
@@ -1118,7 +1118,7 @@ This function also returns nil meaning don't specify the indentation."
11181118
(cond
11191119
;; Preserve useful alignment of :require (and friends) in `ns' forms.
11201120
((and function (string-match "^:" function))
1121-
(clojure--normal-indent last-sexp :align-arguments))
1121+
(clojure--normal-indent last-sexp :always-align))
11221122
;; This is should be identical to the :defn above.
11231123
((and function
11241124
(string-match "\\`\\(?:\\S +/\\)?\\(def[a-z]*\\|with-\\)"

0 commit comments

Comments
 (0)