From 3b4a0d1b18453374a4b6d3ad0a628a38a5d46f7b Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 8 Dec 2019 17:03:40 +0000 Subject: [PATCH] code cleanup --- init.org | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 78 insertions(+), 3 deletions(-) diff --git a/init.org b/init.org index ccb5ef3..d318737 100644 --- a/init.org +++ b/init.org @@ -26,6 +26,9 @@ - CONTINUE TODO from config.org at Programming * First start + :PROPERTIES: + :ID: ec248005-527f-4fa1-bdef-9343f2fa28b0 + :END: When pulling the repository the first time, an initial init.el needs to be setup. After start it will replace itself with the configuration from init.org #+BEGIN_SRC emacs-lisp :tangle no @@ -81,6 +84,9 @@ #+END_SRC * Default settings + :PROPERTIES: + :ID: 00b48602-2a95-492e-a90b-c1e3a94c1ecb + :END: #+BEGIN_SRC emacs-lisp (defvar me/whoami (if (string-equal (system-name) "PMTS01") @@ -150,12 +156,18 @@ Some windows specific stuff #+END_SRC * visuals ** Font + :PROPERTIES: + :ID: cdfaaf73-b027-4b86-8d27-ebdce4b85009 + :END: #+BEGIN_SRC emacs-lisp (if (string-equal system-type "gnu/linux") (set-face-font 'default "Hack-10")) #+END_SRC ** line wrappings + :PROPERTIES: + :ID: 60b1f231-ab1e-4c47-ac6d-262dc208a520 + :END: #+BEGIN_SRC emacs-lisp (global-visual-line-mode) (diminish 'visual-line-mode) @@ -171,6 +183,9 @@ Some windows specific stuff ; (add-hook 'visual-line-mode-hook 'my/activate-adaptive-wrap-prefix-mode))) #+END_SRC ** line numbers + :PROPERTIES: + :ID: d3dfb79a-103a-4318-a5af-5a55e12674ce + :END: #+BEGIN_SRC emacs-lisp (use-package display-line-numbers :init @@ -184,6 +199,9 @@ Some windows specific stuff ; (add-hook 'emacs-lisp-mode-hook 'display-line-numbers-mode) #+END_SRC ** misc + :PROPERTIES: + :ID: f0f774d6-db13-4871-9192-d36e78120dde + :END: #+BEGIN_SRC emacs-lisp (use-package rainbow-mode :ensure t @@ -192,6 +210,9 @@ Some windows specific stuff emacs-lisp-mode) . rainbow-mode)) #+END_SRC * undo + :PROPERTIES: + :ID: fde526fa-b053-48dd-9ac1-c443d987f4d2 + :END: #+BEGIN_SRC emacs-lisp (use-package undo-tree :ensure t @@ -200,6 +221,9 @@ Some windows specific stuff (global-undo-tree-mode 1)) #+END_SRC * imenu-list + :PROPERTIES: + :ID: 796d00db-aadb-412b-a291-619b029977f3 + :END: A minor mode to show imenu in a sidebar. Call imenu-list-smart-toggle. [[https://github.com/bmag/imenu-list][Source]] @@ -217,6 +241,9 @@ Some windows specific stuff ) #+END_SRC * which-key + :PROPERTIES: + :ID: 0a67aeb4-4060-4f4d-a7ff-61c70fe7ec7b + :END: #+BEGIN_SRC emacs-lisp (use-package which-key :ensure t @@ -229,6 +256,9 @@ Some windows specific stuff #+END_SRC * Evil + :PROPERTIES: + :ID: a3389b7d-3833-42b7-97e1-413b8c4d9833 + :END: #+BEGIN_SRC emacs-lisp (use-package evil @@ -238,6 +268,9 @@ Some windows specific stuff (evil-mode 1)) #+END_SRC * General (key mapper) + :PROPERTIES: + :ID: 027bdcf8-95c9-4e9b-88ba-6e9d3e5116c0 + :END: #+BEGIN_SRC emacs-lisp (use-package general :ensure t) @@ -252,6 +285,9 @@ Some windows specific stuff #+END_SRC * orgmode ** org + :PROPERTIES: + :ID: 3877251e-5ece-4006-baa6-1f1b4846a8f3 + :END: #+BEGIN_SRC emacs-lisp (use-package org :ensure org-plus-contrib @@ -259,8 +295,6 @@ Some windows specific stuff :init (add-hook 'org-mode-hook 'company/org-mode-hook) :config - ;; (require 'org-id) - ;;(add-to-list 'org-modules "org-id") (setq org-modules (quote (org-id org-habit ))) @@ -270,9 +304,11 @@ Some windows specific stuff org-id-locations-file (concat MY--PATH_USER_LOCAL ".org-id-locations") org-log-into-drawer "LOGBOOK") (setq org-src-window-setup 'current-window)) ;; C-c ' opens in current window - (org-id-update-id-locations) #+END_SRC ** habits + :PROPERTIES: + :ID: 61735b0c-5016-4697-80c6-beb7b3f27a1b + :END: #+BEGIN_SRC emacs-lisp (require 'org-habit) ;;TODO Lösung ohne require finden, scheint mir nicht ideal zu sein, nur um ein org-modul zu aktivieren ;; (add-to-list 'org-modules "org-habit") @@ -282,6 +318,9 @@ Some windows specific stuff org-habit-show-habits-only-for-today nil) #+END_SRC ** org-id + :PROPERTIES: + :ID: 017ef411-8239-4bfe-bbef-66b98a2971a9 + :END: #+BEGIN_SRC emacs-lisp (use-package org-id :config @@ -304,6 +343,9 @@ BEGIN_SRC emacs-lisp org-caldav-files (concat MY--PATH_ORG_FILES "tasks"))) END_SRC ** journal + :PROPERTIES: + :ID: 0b7243ac-049f-4b9c-a062-7a349c515133 + :END: [[https://github.com/bastibe/org-journal][Source]] #+BEGIN_SRC emacs-lisp @@ -315,6 +357,9 @@ END_SRC (org-journal-enable-agenda-integration t)) #+END_SRC * ivy / counsel / swiper + :PROPERTIES: + :ID: c2146a70-03f4-4f60-9bce-094eec28cefe + :END: #+BEGIN_SRC emacs-lisp ; (require 'ivy) @@ -354,6 +399,9 @@ END_SRC #+END_SRC * company + :PROPERTIES: + :ID: 1630ac5e-7467-458c-940c-4f724e283813 + :END: #+BEGIN_SRC emacs-lisp ; (require 'company) @@ -397,6 +445,9 @@ END_SRC #+END_SRC ** company backends + :PROPERTIES: + :ID: 6ac59f9d-54e3-422d-883f-128fb172468d + :END: #+BEGIN_SRC emacs-lisp (defun company/org-mode-hook() @@ -417,6 +468,9 @@ END_SRC * Programming ** Magit / Git + :PROPERTIES: + :ID: a947f806-181d-4d33-9734-435849385b0b + :END: Little crash course in magit: - magit-init to init a git project - magit-status (C-x g) to call the status window @@ -445,6 +499,9 @@ In status buffer: #+END_SRC ** LSP + :PROPERTIES: + :ID: d529d096-ec38-42e6-91c9-099c1d8bdd06 + :END: Configuration for the language server protocol *ACHTUNG* Dateipfad muss absolut sein, symlink im Pfad führt zumindest beim ersten Start zu Fehlern beim lsp Sobald der lsp einmal lief, kann zukünftig der symlink-Pfad genommen werden. @@ -498,6 +555,9 @@ TODO Unterverzeichnisse wurden noch nicht getestet #+END_SRC ** flycheck + :PROPERTIES: + :ID: c8090ddb-4f22-49ba-8ab1-1de132e1d772 + :END: #+BEGIN_SRC emacs-lisp (use-package flycheck :ensure t @@ -516,6 +576,9 @@ TODO Unterverzeichnisse wurden noch nicht getestet #+END_SRC ** Projectile + :PROPERTIES: + :ID: 3cc5c1d2-1a5d-4d1a-bfeb-48de8172dd63 + :END: Manage projects and jump quickly between its files #+BEGIN_SRC emacs-lisp (use-package projectile @@ -536,10 +599,16 @@ Manage projects and jump quickly between its files #+END_SRC ** lisp + :PROPERTIES: + :ID: e5ce0263-3b21-460e-a037-3fe27d6e836a + :END: #+BEGIN_SRC emacs-lisp (add-hook 'emacs-lisp-mode-hook 'company/elisp-mode-hook) #+END_SRC ** web + :PROPERTIES: + :ID: 5649b885-839f-48db-8b4f-8d594df7ebd8 + :END: apt install npm sudo npm install -g vscode-html-languageserver-bin @@ -557,6 +626,9 @@ Manage projects and jump quickly between its files #+END_SRC ** Python + :PROPERTIES: + :ID: cd4bbd1f-9980-42c9-a5af-aa808779d524 + :END: Systemseitig muss python-language-server installiert sein: pip3 install 'python-language-server[all]' @@ -588,6 +660,9 @@ Manage projects and jump quickly between its files #+END_SRC * beancount ** Installation + :PROPERTIES: + :ID: 0c5f3396-4b08-4549-ac68-0c516cfd4435 + :END: #+BEGIN_SRC shell sudo su cd /opt