From 36d4e3bd640adc7a66498cf2fd34c039a31bbd09 Mon Sep 17 00:00:00 2001 From: marc Date: Sat, 28 Dec 2019 16:58:10 +0100 Subject: [PATCH] emacs added properties --- init.org | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/init.org b/init.org index 391cb0b..a63ef9a 100644 --- a/init.org +++ b/init.org @@ -28,11 +28,17 @@ - all-the-icons? * Header + :PROPERTIES: + :ID: a14d7c89-24ea-41ae-b185-944bab49aa02 + :END: Emacs variables are dynamically scoped. That's unusual for most languages, so disable it here, too #+begin_src emacs-lisp ;;; init.el --- -*- lexical-binding: t -*- #+end_src * First start + :PROPERTIES: + :ID: 1c24d48e-0124-4a0b-8e78-82e4c531e818 + :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 @@ -88,6 +94,9 @@ Emacs variables are dynamically scoped. That's unusual for most languages, so di #+END_SRC * Default settings + :PROPERTIES: + :ID: 3512d679-d111-4ccd-8372-6fc2acbc0374 + :END: #+BEGIN_SRC emacs-lisp (defconst *sys/gui* (display-graphic-p) @@ -186,6 +195,9 @@ Some windows specific stuff #+END_SRC * visuals ** Font + :PROPERTIES: + :ID: dc8eb670-e6bb-4bfb-98f0-aae1860234fb + :END: #+BEGIN_SRC emacs-lisp (when *sys/linux* (set-face-font 'default "Hack-10")) @@ -194,6 +206,9 @@ Some windows specific stuff #+END_SRC ** Themes + :PROPERTIES: + :ID: 9ccf37c0-6837-43cb-bed8-5a353799d8b1 + :END: #+BEGIN_SRC emacs-lisp (defun my/toggle-theme () @@ -215,6 +230,9 @@ Windows Theme: (load-theme 'tango)) #+END_SRC ** line wrappings + :PROPERTIES: + :ID: 14ae933e-2941-4cc3-82de-38f90f91bfd3 + :END: #+BEGIN_SRC emacs-lisp (global-visual-line-mode) (diminish 'visual-line-mode) @@ -230,6 +248,9 @@ Windows Theme: ; (add-hook 'visual-line-mode-hook 'my/activate-adaptive-wrap-prefix-mode))) #+END_SRC ** line numbers + :PROPERTIES: + :ID: 7b969436-98c9-4b61-ba7a-9fb22c9781ad + :END: #+BEGIN_SRC emacs-lisp (use-package display-line-numbers :init @@ -243,6 +264,9 @@ Windows Theme: ; (add-hook 'emacs-lisp-mode-hook 'display-line-numbers-mode) #+END_SRC ** misc + :PROPERTIES: + :ID: a2873138-16ee-4990-89a2-26eab778ea74 + :END: #+BEGIN_SRC emacs-lisp (use-package rainbow-mode :ensure t @@ -251,6 +275,9 @@ Windows Theme: emacs-lisp-mode) . rainbow-mode)) #+END_SRC * undo + :PROPERTIES: + :ID: d57621b2-5472-4c89-a520-b4133db0b9af + :END: #+BEGIN_SRC emacs-lisp (use-package undo-tree :ensure t @@ -259,6 +286,9 @@ Windows Theme: (global-undo-tree-mode 1)) #+END_SRC * imenu-list + :PROPERTIES: + :ID: 0ae27ec9-5d77-43cf-ac76-5e12cc959046 + :END: A minor mode to show imenu in a sidebar. Call imenu-list-smart-toggle. [[https://github.com/bmag/imenu-list][Source]] @@ -276,6 +306,9 @@ Windows Theme: ) #+END_SRC * which-key + :PROPERTIES: + :ID: a880f079-b3a3-4706-bf1e-5f6c680101f1 + :END: #+BEGIN_SRC emacs-lisp (use-package which-key :ensure t @@ -288,6 +321,9 @@ Windows Theme: #+END_SRC * Evil + :PROPERTIES: + :ID: 80ca70e2-a146-46db-b581-418d655dc1fc + :END: #+BEGIN_SRC emacs-lisp (use-package evil @@ -297,6 +333,9 @@ Windows Theme: (evil-mode 1)) #+END_SRC * General (key mapper) + :PROPERTIES: + :ID: a20f183f-d41a-4dff-bc37-3bc4e25c8036 + :END: #+BEGIN_SRC emacs-lisp (use-package general :ensure t) @@ -310,6 +349,9 @@ Windows Theme: "q" '(imenu-list-quit-window :which-key "quit")) #+END_SRC * ivy / counsel / swiper + :PROPERTIES: + :ID: 55c74ba9-7761-4545-8ddd-087d6ee33e4b + :END: #+BEGIN_SRC emacs-lisp ; (require 'ivy) @@ -349,6 +391,9 @@ Windows Theme: #+END_SRC * company + :PROPERTIES: + :ID: 944563b6-b04a-44f2-9b21-a6a3e200867c + :END: #+BEGIN_SRC emacs-lisp (use-package company @@ -390,6 +435,9 @@ Windows Theme: #+END_SRC ** company backends + :PROPERTIES: + :ID: 4ce2e728-276d-41f9-9538-84e6e08afd8d + :END: #+BEGIN_SRC emacs-lisp (defun company/org-mode-hook() @@ -409,6 +457,9 @@ Windows Theme: #+END_SRC * orgmode ** org + :PROPERTIES: + :ID: b89d7639-080c-4168-8884-bd5d8965f466 + :END: #+BEGIN_SRC emacs-lisp (use-package org :ensure org-plus-contrib @@ -443,6 +494,9 @@ Windows Theme: org-src-tab-acts-natively t)) #+END_SRC ** languages + :PROPERTIES: + :ID: ad3af718-d0db-448c-9f75-eb9e250c2862 + :END: Set some languages and disable confirmation for evaluating code blocks C-c C-c #+BEGIN_SRC emacs-lisp (org-babel-do-load-languages @@ -462,6 +516,9 @@ Set some languages and disable confirmation for evaluating code blocks C-c C-c (setq org-confirm-babel-evaluate nil) #+END_SRC ** habits + :PROPERTIES: + :ID: fcc91d0a-d040-4910-b2cf-3221496a3842 + :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") @@ -471,6 +528,9 @@ Set some languages and disable confirmation for evaluating code blocks C-c C-c org-habit-show-habits-only-for-today nil) #+END_SRC ** org-id + :PROPERTIES: + :ID: c4017c45-d650-410c-8bd4-bc3cf42bbbb9 + :END: Currently it causes some debugger errors "not a standard org time string", so it's disabled #+BEGIN_SRC emacs-lisp ;; (use-package org-id @@ -480,6 +540,9 @@ Currently it causes some debugger errors "not a standard org time string", so it #+END_SRC ** org-agenda + :PROPERTIES: + :ID: 03b67efb-4179-41e5-bc2e-c472b13f8be6 + :END: Custom keywords, depending on environment #+BEGIN_SRC emacs-lisp (when *work_remote* @@ -536,6 +599,9 @@ Customize the org agenda org-super-agenda ** org-caldav + :PROPERTIES: + :ID: 6bd24369-0d04-452f-85a0-99914dfb74ff + :END: Vorerst deaktiviert, Nutzen evtl. nicht vorhanden #+BEGIN_SRC emacs-lisp ;;(use-package org-caldav @@ -547,6 +613,9 @@ Vorerst deaktiviert, Nutzen evtl. nicht vorhanden ;; org-caldav-files (concat MY--PATH_ORG_FILES "tasks"))) #+END_SRC ** journal + :PROPERTIES: + :ID: a1951e18-d862-4198-9652-016e979053c8 + :END: [[https://github.com/bastibe/org-journal][Source]] #+BEGIN_SRC emacs-lisp @@ -561,6 +630,9 @@ Vorerst deaktiviert, Nutzen evtl. nicht vorhanden * Programming ** Magit / Git + :PROPERTIES: + :ID: d3589460-317f-40f6-9056-053be9ba3217 + :END: Little crash course in magit: - magit-init to init a git project - magit-status (C-x g) to call the status window @@ -589,6 +661,9 @@ In status buffer: #+END_SRC ** LSP + :PROPERTIES: + :ID: 06ad00e0-44a6-4bfb-ba6f-b1672811e053 + :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. @@ -642,6 +717,9 @@ TODO Unterverzeichnisse wurden noch nicht getestet #+END_SRC ** yasnippet + :PROPERTIES: + :ID: 935d89ef-645e-4e92-966f-2fe3bebb2880 + :END: For useful snippet either install yasnippet-snippets or get them from here [[https://github.com/AndreaCrotti/yasnippet-snippets][Github]] @@ -658,6 +736,9 @@ For useful snippet either install yasnippet-snippets or get them from here #+end_src ** hippie expand + :PROPERTIES: + :ID: c55245bc-813d-4816-a0ca-b4e2e793e28b + :END: With hippie expand I am able to use yasnippet and emmet at the same time with the same key. #+begin_src emacs-lisp (use-package hippie-exp @@ -669,6 +750,9 @@ With hippie expand I am able to use yasnippet and emmet at the same time with th '(yas-hippie-try-expand emmet-expand-line))) #+end_src ** flycheck + :PROPERTIES: + :ID: 3d8f2547-c5b3-46d0-91b0-9667f9ee5c47 + :END: #+BEGIN_SRC emacs-lisp (use-package flycheck :ensure t @@ -687,6 +771,9 @@ With hippie expand I am able to use yasnippet and emmet at the same time with th #+END_SRC ** Projectile + :PROPERTIES: + :ID: a90329fd-4d36-435f-8308-a2771ac4c320 + :END: Manage projects and jump quickly between its files #+BEGIN_SRC emacs-lisp (use-package projectile @@ -707,6 +794,9 @@ Manage projects and jump quickly between its files #+END_SRC ** smartparens + :PROPERTIES: + :ID: 997ec416-33e6-41ed-8c7c-75a7bc47d285 + :END: #+BEGIN_SRC emacs-lisp (use-package smartparens :ensure t @@ -729,10 +819,16 @@ Manage projects and jump quickly between its files #+END_SRC ** lisp + :PROPERTIES: + :ID: a2bc3e08-b203-49d3-b337-fb186a14eecb + :END: #+BEGIN_SRC emacs-lisp (add-hook 'emacs-lisp-mode-hook 'company/elisp-mode-hook) #+END_SRC ** web + :PROPERTIES: + :ID: c0b0b4e4-2162-429f-b80d-6e5334b1290e + :END: apt install npm sudo npm install -g vscode-html-languageserver-bin @@ -768,6 +864,9 @@ Default completion is C-j (unbind-key "C-" emmet-mode-keymap)) #+end_src ** YAML + :PROPERTIES: + :ID: 95413247-04d5-4e02-8431-06c162ec8f3b + :END: #+begin_src emacs-lisp (use-package yaml-mode :if *sys/linux* @@ -775,6 +874,9 @@ Default completion is C-j :mode ("\\.yml$" . yaml-mode)) #+end_src ** Python + :PROPERTIES: + :ID: 8c76fcd1-c57c-48ab-8af0-aa782de6337f + :END: Systemseitig muss python-language-server installiert sein: pip3 install 'python-language-server[all]' @@ -807,6 +909,9 @@ Default completion is C-j #+END_SRC * beancount ** Installation + :PROPERTIES: + :ID: 2c329043-b7a9-437d-a5cf-f2ad6514be91 + :END: #+BEGIN_SRC shell sudo su cd /opt