diff options
| author | Ravi R Kiran <aine.marina@gmail.com> | 2018-09-09 03:04:22 (GMT) |
|---|---|---|
| committer | Ravi R Kiran <aine.marina@gmail.com> | 2018-09-09 03:04:22 (GMT) |
| commit | a2beef12beb2ef7183288f2624c2d7ca885f8ead (patch) | |
| tree | f42a02e9db87f9f16f85825cdb0c6d78381d8681 /lisp/ravi-init-cpp.el | |
| parent | 38f1237b77b1941a514178a1f9893d9f1de72cc9 (diff) | |
| download | dotemacs-a2beef12beb2ef7183288f2624c2d7ca885f8ead.zip dotemacs-a2beef12beb2ef7183288f2624c2d7ca885f8ead.tar.gz dotemacs-a2beef12beb2ef7183288f2624c2d7ca885f8ead.tar.bz2 | |
Do not start processes for remote files
Diffstat (limited to 'lisp/ravi-init-cpp.el')
| -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))) ) ) |
