Browse Source

code cleanup

master
Marc 4 years ago
parent
commit
3b4a0d1b18
1 changed files with 78 additions and 3 deletions
  1. 81
      init.org

81
init.org

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

Loading…
Cancel
Save