branch: externals/phps-mode commit 8109c1ac667cde41f43c87b592179104b7c72c7a Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
(uncomment-region) working --- phps-mode-functions.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/phps-mode-functions.el b/phps-mode-functions.el index d4e1bc0..8b74643 100644 --- a/phps-mode-functions.el +++ b/phps-mode-functions.el @@ -806,9 +806,12 @@ (set (make-local-variable 'phps-mode-functions-imenu) nil) (set (make-local-variable 'phps-mode-functions-processed-buffer) nil) - ;; Make (comment-region) work - (set (make-local-variable 'comment-start) "/* ") - (set (make-local-variable 'comment-end) " */") + ;; Make (comment-region) and (uncomment-region) work + (set (make-local-variable 'comment-start) "/*") + (set (make-local-variable 'comment-padding) " ") + (set (make-local-variable 'comment-end) "*/") + (set (make-local-variable 'comment-use-syntax) nil) + (set (make-local-variable 'comment-start-skip) "\/\\* ") ;; Support for change detection (add-hook 'after-change-functions #'phps-mode-functions-after-change))