Browse Source

changed system identifier names

master
Marc 4 years ago
parent
commit
9f728b6f31
1 changed files with 10 additions and 10 deletions
  1. 20
      init.org

20
init.org

@ -87,11 +87,11 @@ Emacs variables are dynamically scoped. That's unusual for most languages, so di
* Default settings * Default settings
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defconst *linux*
(defconst *sys/linux*
(string-equal system-type 'gnu/linux) (string-equal system-type 'gnu/linux)
"Is the system running Linux?") "Is the system running Linux?")
(defconst *windows*
(defconst *sys/windows*
(string-equal system-type 'windows-nt) (string-equal system-type 'windows-nt)
"Is the system running Windows?") "Is the system running Windows?")
@ -116,7 +116,7 @@ Emacs variables are dynamically scoped. That's unusual for most languages, so di
(defvar MY--PATH_USER_LOCAL (expand-file-name "~/.emacs.d/user-local/")) (defvar MY--PATH_USER_LOCAL (expand-file-name "~/.emacs.d/user-local/"))
(defvar MY--PATH_USER_GLOBAL (expand-file-name "~/.emacs.d/user-global/")) (defvar MY--PATH_USER_GLOBAL (expand-file-name "~/.emacs.d/user-global/"))
(when *linux*
(when *sys/linux*
(defconst MY--PATH_ORG_FILES (expand-file-name "~/Archiv/Organisieren/")) (defconst MY--PATH_ORG_FILES (expand-file-name "~/Archiv/Organisieren/"))
(defconst MY--PATH_ORG_FILES_MOBILE (expand-file-name "~/Archiv/Organisieren/mobile/"))) (defconst MY--PATH_ORG_FILES_MOBILE (expand-file-name "~/Archiv/Organisieren/mobile/")))
(defconst MY--PATH_ORG_JOURNAl (expand-file-name "~/Archiv/Organisieren/Journal/")) (defconst MY--PATH_ORG_JOURNAl (expand-file-name "~/Archiv/Organisieren/Journal/"))
@ -144,7 +144,7 @@ Emacs variables are dynamically scoped. That's unusual for most languages, so di
(set-terminal-coding-system 'utf-8) (set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8) (set-selection-coding-system 'utf-8)
(if *windows*
(if *sys/windows*
(prefer-coding-system 'utf-8-dos) (prefer-coding-system 'utf-8-dos)
(prefer-coding-system 'utf-8)) (prefer-coding-system 'utf-8))
@ -181,7 +181,7 @@ Some windows specific stuff
* visuals * visuals
** Font ** Font
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(when *linux*
(when *sys/linux*
(set-face-font 'default "Hack-10")) (set-face-font 'default "Hack-10"))
(when *work_remote* (when *work_remote*
(set-face-font 'default "Lucida Sans Typewriter-11")) (set-face-font 'default "Lucida Sans Typewriter-11"))
@ -192,7 +192,7 @@ Some windows specific stuff
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defun my/toggle-theme () (defun my/toggle-theme ()
(interactive) (interactive)
(when (or *windows* *linux*)
(when (or *sys/windows* *sys/linux*)
(if (eq (car custom-enabled-themes) 'tango-dark) (if (eq (car custom-enabled-themes) 'tango-dark)
(progn (disable-theme 'tango-dark) (progn (disable-theme 'tango-dark)
(load-theme 'tango)) (load-theme 'tango))
@ -205,7 +205,7 @@ Some windows specific stuff
Windows Theme: Windows Theme:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(when *windows*
(when *sys/windows*
(load-theme 'tango)) (load-theme 'tango))
#+END_SRC #+END_SRC
** line wrappings ** line wrappings
@ -419,7 +419,7 @@ Windows Theme:
org-agenda-files (list (concat MY--PATH_ORG_FILES "notes.org") org-agenda-files (list (concat MY--PATH_ORG_FILES "notes.org")
(concat MY--PATH_ORG_FILES "projects.org") (concat MY--PATH_ORG_FILES "projects.org")
(concat MY--PATH_ORG_FILES "todo.org"))) (concat MY--PATH_ORG_FILES "todo.org")))
(when *linux*
(when *sys/linux*
(setq org-agenda-files (list org-agenda-files (setq org-agenda-files (list org-agenda-files
MY--PATH_ORG_FILES_MOBILE))) MY--PATH_ORG_FILES_MOBILE)))
(setq org-id-locations-file (concat MY--PATH_USER_LOCAL ".org-id-locations") (setq org-id-locations-file (concat MY--PATH_USER_LOCAL ".org-id-locations")
@ -545,7 +545,7 @@ Vorerst deaktiviert, Nutzen evtl. nicht vorhanden
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package org-journal (use-package org-journal
:if *linux*
:if *sys/linux*
:ensure t :ensure t
:defer t :defer t
:config :config
@ -723,7 +723,7 @@ Manage projects and jump quickly between its files
** YAML ** YAML
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package yaml-mode (use-package yaml-mode
:if *linux*
:if *sys/linux*
:ensure t :ensure t
:mode ("\\.yml$" . yaml-mode)) :mode ("\\.yml$" . yaml-mode))
#+end_src #+end_src

Loading…
Cancel
Save