Skip to content

Commit

Permalink
Update .dir-locals.el to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed Aug 9, 2018
1 parent b8017bd commit c83a9c4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
;; Adapted from https://stackoverflow.com/questions/4012321/how-can-i-access-the-path-to-the-current-directory-in-an-emacs-directory-variabl
((nil . ((eval . (set (make-local-variable 'ispell-personal-dictionary)
(expand-file-name
"spelling-list.txt"
(file-name-directory
(let ((d (dir-locals-find-file ".")))
(if (stringp d) d (car d))))))))))
((latex-mode . ((eval . (progn
(set (make-local-variable 'ispell-personal-dictionary)
(expand-file-name
"spelling-list.txt"
(file-name-directory
(let ((d (dir-locals-find-file ".")))
(if (stringp d) d (car d)))))))))))

0 comments on commit c83a9c4

Please sign in to comment.