Skip to content

Commit

Permalink
Fix Emacs dir-local variables
Browse files Browse the repository at this point in the history
The setting for cperl-indent-level (which sets the default indentation step
used by Emacs for Perl code) was missing a dot in the relevant cons pair.
This meant that the value set was the single-element list (4) rather than
the integer 4, so attempting to indent lines made Emacs produce an error
"Wrong type argument: number-or-marker-p, (4)".
  • Loading branch information
arc committed Dec 7, 2015
1 parent 9b46180 commit a391476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;; Default settings for all except cpan/
((nil . ((indent-tabs-mode . nil))) ; all modes
(cperl-mode . ((cperl-indent-level 4)))
(cperl-mode . ((cperl-indent-level . 4)))
(c-mode . ((c-indentation-style . bsd)
(c-basic-offset . 4))))

0 comments on commit a391476

Please sign in to comment.