From edab768dfc376347acea407e70da2bebbd5c475b Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 26 Dec 2019 10:29:42 +0000 Subject: [PATCH] streamlined system identifications --- init.org | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/init.org b/init.org index 1162d66..5b6d201 100644 --- a/init.org +++ b/init.org @@ -166,7 +166,7 @@ Emacs variables are dynamically scoped. That's unusual for most languages, so di Some windows specific stuff #+BEGIN_SRC emacs-lisp - (when (eq system-type 'windows-nt) + (when *sys/windows* (remove-hook 'find-file-hooks 'vc-refresh-state) (progn (setq gc-cons-threshold (* 511 1024 1024) @@ -735,7 +735,7 @@ Manage projects and jump quickly between its files https://github.com/emacs-lsp/lsp-mode#install-language-server #+BEGIN_SRC emacs-lisp -(if (string-equal system-type "gnu/linux") +(if *sys/linux* (defun my/postactivatehook () (setq lsp-python-ms-extra-paths pyvenv-virtual-env)) @@ -773,21 +773,21 @@ deactivate #+END_SRC #+BEGIN_SRC emacs-lisp - (if (string-equal system-type "gnu/linux") - (use-package beancount - :load-path "user-global/elisp" -; :ensure t - :defer t - :mode - ("\\.beancount$" . beancount-mode) - :init - (add-hook 'beancount-mode-hook 'company/beancount-mode-hook) +(use-package beancount + :if *sys/linux* + :load-path "user-global/elisp" +; :ensure t + :defer t + :mode + ("\\.beancount$" . beancount-mode) + :init + (add-hook 'beancount-mode-hook 'company/beancount-mode-hook) ; (add-hook 'beancount-mode-hook (pyvenv-activate "/opt/beancount")) ; (setenv "PATH" ; (concat "/opt/beancount/bin:" ; (getenv "PATH"))) - :config - (setq beancount-filename-main "/home/marc/Archiv/Finanzen/Transaktionen/transactions.beancount"))) + :config + (setq beancount-filename-main "/home/marc/Archiv/Finanzen/Transaktionen/transactions.beancount")) #+END_SRC To support org-babel, check if it can find the symlink to ob-beancount.el