Skip to content

Commit

Permalink
Hack to indentation problem of JS and TS in mmm-mode
Browse files Browse the repository at this point in the history
For example, it was happening in vue-mode.

See: AdamNiederer/vue-mode#74 (comment)
  • Loading branch information
elim committed Oct 18, 2019
1 parent c289196 commit 30f952f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,17 @@
("`" . self-insert-command)
([(meta return)] . elim:toggle-fullscreen)))
:mode ("\\.md\\'" . gfm-mode))
(leaf mmm-mode
:ensure t
:config
(leaf *hack-indentation
;; https://github.com/AdamNiederer/vue-mode/issues/74#issuecomment-539711083
:preface
(defun elim:disable-syntax-ppss-table ()
(set-variable 'syntax-ppss-table nil))
:hook
((mmm-js-mode-enter-hook . elim:disable-syntax-ppss-table)
(mmm-typescript-mode-enter-hook . elim:disable-syntax-ppss-table))))
(leaf *org
:custom (org-directory . "~/Dropbox/org/")
:config
Expand Down

0 comments on commit 30f952f

Please sign in to comment.