diff options
Diffstat (limited to 'oni-csharp.el')
-rw-r--r-- | oni-csharp.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/oni-csharp.el b/oni-csharp.el index 98318a0..95f077d 100644 --- a/oni-csharp.el +++ b/oni-csharp.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2019.0904.210426 +;; Version: 2019.1210.230556 ;; Package-Requires: (csharp-mode omnisharp oni-company oni-flycheck) ;; This program is free software; you can redistribute it and/or modify @@ -76,6 +76,11 @@ (overlay-put current-overlay 'oni-csharp--overlayp t) (overlay-put current-overlay 'evaporate t))))) +(defun oni-csharp--auto-fill-mode () + "Enable ‘auto-fill-mode’ only for comments." + (setq-local comment-auto-fill-only-comments t) + (auto-fill-mode)) + (with-eval-after-load 'company (add-to-list 'company-backends 'company-omnisharp)) @@ -84,6 +89,7 @@ (add-hook 'csharp-mode-hook 'electric-pair-local-mode) (add-hook 'csharp-mode-hook 'flycheck-mode) (add-hook 'csharp-mode-hook 'omnisharp-mode) +(add-hook 'csharp-mode-hook 'oni-csharp--auto-fill-mode) ;;;###autoload(with-eval-after-load 'csharp-mode (require 'oni-csharp)) |