diff options
| -rw-r--r-- | lisp/ravi-init-cpp.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/ravi-init-cpp.el b/lisp/ravi-init-cpp.el index 14bc370..f6ffa48 100644 --- a/lisp/ravi-init-cpp.el +++ b/lisp/ravi-init-cpp.el @@ -539,11 +539,12 @@ this to 3 makes header-protection define KIG_MISC_NEWTYPE_H for a file named :init (progn (defun ravi/cquery-enable () - (setq lsp-enable-completion-at-point nil) - (setq lsp-enable-indentation nil) ; conflicts with other indentation commands - (condition-case nil - (lsp-cquery-enable) - (user-error nil))) + (unless (file-remote-p default-directory) + (setq lsp-enable-completion-at-point nil) + (setq lsp-enable-indentation nil) ; conflicts with other indentation commands + (condition-case nil + (lsp-cquery-enable) + (user-error nil)))) (add-hook 'c-mode-common-hook #'ravi/cquery-enable) ) :config @@ -625,8 +626,9 @@ this to 3 makes header-protection define KIG_MISC_NEWTYPE_H for a file named (defun ravi/setup-malinka () (interactive) - (malinka-mode 1) - (ravi/find-current-project)) + (unless (file-remote-p default-directory) + (malinka-mode 1) + (ravi/find-current-project))) (add-hook 'c-mode-common-hook 'ravi/setup-malinka))) ) ) |
