Browse Source

emacs added properties

master
marc 4 years ago
parent
commit
36d4e3bd64
1 changed files with 105 additions and 0 deletions
  1. 105
      init.org

105
init.org

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

Loading…
Cancel
Save