Merge branch 'main' of gitlab.com:marcuskammer/emacs.d

This commit is contained in:
Marcus Kammer 2021-05-03 16:42:38 +02:00
commit c0bda48015
11 changed files with 251 additions and 78 deletions

View file

@ -37,7 +37,9 @@ if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.npm-packages/bin:$PATH"
export PATH="$PATH:$HOME/.npm-packages/bin"
export PATH="$PATH:/usr/local/go/bin"
export PATH="$PATH:$HOME/go/bin"
source ~/.apikeys
source "$HOME/.cargo/env"

28
OneDark.conf Normal file
View file

@ -0,0 +1,28 @@
# Colors
foreground #979eab
background #282c34
color0 #282c34
color1 #e06c75
color2 #98c379
color3 #e5c07b
color4 #61afef
color5 #be5046
color6 #56b6c2
color7 #979eab
color8 #393e48
color9 #d19a66
color10 #56b6c2
color11 #e5c07b
color12 #61afef
color13 #be5046
color14 #56b6c2
color15 #abb2bf
# Tab Bar
active_tab_foreground #282c34
active_tab_background #979eab
inactive_tab_foreground #abb2bf
inactive_tab_background #282c34

View file

@ -9,6 +9,7 @@
(setq-default display-time-24hr-format t)
(display-time-mode 1)
(global-prettify-symbols-mode 1)
(set-fringe-mode 10)
;; Cursor and mouse
(column-number-mode 1)
@ -61,11 +62,11 @@
(put 'narrow-to-page 'disabled nil)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(defalias 'yes-or-no-p 'y-or-n-p)
(setq dracula-enlarge-headings nil)
;; Windows, Frames
(setq default-frame-alist
'((font . "Fira Code-11")
(alpha . 100)
(width . 94)
(height . 70)))
@ -85,3 +86,9 @@
minor-mode-alist
mode-line-end-spaces "%-"
)))
;; Set transparency of emacs
(defun transparency (value)
"Sets the transparency of the frame window. 0=transparent/100=opaque"
(interactive "nTransparency Value 0 - 100 opaque:")
(set-frame-parameter (selected-frame) 'alpha value))

15
bundle/bundle--mu4e.el Normal file
View file

@ -0,0 +1,15 @@
;; http://pragmaticemacs.com/emacs/master-your-inbox-with-mu4e-and-org-mode/
(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e/")
(require 'mu4e)
(setq mu4e-maildir (expand-file-name "~/Maildir"))
(setq mu4e-drafts-folder "/Drafts")
(setq mu4e-sent-folder "/Sent")
(setq mu4e-trash-folder "/Deleted")
(setq mu4e-get-mail-command "offlineimap")
(require 'org-mu4e)
(setq message-send-mail-function 'smtpmail-send-it)
(setq smtpmail-smtp-server "smtp.mailbox.org")
(setq smtpmail-smtp-service 465)
(setq smtpmail-auth-credentials (expand-file-name "~/.authinfo"))

View file

@ -1,25 +1,16 @@
;; PACKAGE
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("elpa" . "https://elpa.gnu.org/packages/")))
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
(when no-ssl
(warn "\
Your version of Emacs does not support SSL connections,
which is unsafe because it allows man-in-the-middle attacks.
There are two things you can do about this warning:
1. Install an Emacs version that does support SSL and be safe.
2. Remove this warning from your init file so you won't see it again."))
;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/")))))
(package-initialize)
(package-refresh-contents)
(unless package-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-install 'use-package))
;; USE-PACKAGE
(require 'use-package)
@ -63,19 +54,29 @@ There are two things you can do about this warning:
(use-package pyvenv
:init (pyvenv-mode 1))
(use-package eglot
:hook ((python-mode . eglot-ensure) (c-mode . eglot-ensure)))
(use-package typescript-mode)
(use-package js2-mode
:interpreter (("node" . js2-mode))
:bind (:map js2-mode-map ("C-c C-p" . js2-print-json-path))
:mode "\\.\\(js\\|json\\)$"
:config
(add-hook 'js-mode-hook 'js2-minor-mode)
(setq js2-basic-offset 2
js2-highlight-level 3
js2-mode-show-parse-errors nil
js2-mode-show-strict-warnings nil))
(use-package go-mode)
(use-package eglot
:hook ((python-mode . eglot-ensure)
(c-mode . eglot-ensure)
(js-mode . eglot-ensure)
(typescript-mode . eglot-ensure)
(rust-mode . eglot-ensure)
(go-mode . eglot-ensure)))
(use-package go-mode
:init
(add-hook 'before-save-hook #'gofmt-before-save))
(use-package ob-go)
(use-package ob-http)
(use-package ob-rust)
(use-package ob-translate)
(use-package ob-typescript)
(use-package web-mode
:mode "\\.html?\\'"
@ -137,7 +138,8 @@ There are two things you can do about this warning:
("shell" . sh)
("C" . c)
("sqlite" . sql)
("plantuml" . plantuml)))
("plantuml" . plantuml)
("rust" . rust)))
org-use-property-inheritance nil
org-export-with-sub-superscripts nil
org-capture-templates (quote
@ -164,8 +166,11 @@ There are two things you can do about this warning:
(calc . t)
(plantuml . t)
(C . t)
(dot . t)))))
(dot . t)
(go . t)
(rust . t)
(http . t)
(typescript . t)))))
(use-package helpful
:bind (("C-h f" . #'helpful-callable)
@ -191,3 +196,10 @@ There are two things you can do about this warning:
(use-package geiser
:config
(setq geiser-active-implementations '(guile)))
(use-package racket-mode)
(use-package doom-modeline
:init (doom-modeline-mode 1))
(use-package doom-themes)

View file

@ -3,30 +3,60 @@
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(Info-additional-directory-list '("~/Documents/info/"))
'(Info-default-directory-list '("/usr/share/info/"))
'(TeX-engine 'xetex)
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(ansi-color-names-vector
["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" "#8cc4ff" "#eeeeec"])
'(backup-directory-alist '(("." . "~/.backup_filez")))
'(custom-enabled-themes '(atom-one-dark))
'(custom-enabled-themes '(doom-nord))
'(custom-safe-themes
'("171d1ae90e46978eb9c342be6658d937a83aaa45997b1d7af7657546cae5985b" "9e39a8334e0e476157bfdb8e42e1cea43fad02c9ec7c0dbd5498cf02b9adeaf1" "fe36e4da2ca97d9d706e569024caa996f8368044a8253dc645782e01cd68d884" "1fbd63256477789327fe429bd318fb90a8a42e5f2756dd1a94805fc810ae1b62" "7bc40a2e714b4872ad5cd07f992eb8e06ef5e01a8877488b9ffc3067463ca721" "37768a79b479684b0756dec7c0fc7652082910c37d8863c35b702db3f16000f8" "06bf0822aa77ea498bbd6038b59ad96fca43b272b49b18ab024218881ba134d1" "6e933f1668e124ec17fc7b6547f65ba760e06efb568a6c8091c600c67827e592" "7f6d4aebcc44c264a64e714c3d9d1e903284305fd7e319e7cb73345a9994f5ef" default))
'("fce3524887a0994f8b9b047aef9cc4cc017c5a93a5fb1f84d300391fba313743" "bffa9739ce0752a37d9b1eee78fc00ba159748f50dc328af4be661484848e476" "81c3de64d684e23455236abde277cda4b66509ef2c28f66e059aa925b8b12534" "171d1ae90e46978eb9c342be6658d937a83aaa45997b1d7af7657546cae5985b" "9e39a8334e0e476157bfdb8e42e1cea43fad02c9ec7c0dbd5498cf02b9adeaf1" "fe36e4da2ca97d9d706e569024caa996f8368044a8253dc645782e01cd68d884" "1fbd63256477789327fe429bd318fb90a8a42e5f2756dd1a94805fc810ae1b62" "7bc40a2e714b4872ad5cd07f992eb8e06ef5e01a8877488b9ffc3067463ca721" "37768a79b479684b0756dec7c0fc7652082910c37d8863c35b702db3f16000f8" "06bf0822aa77ea498bbd6038b59ad96fca43b272b49b18ab024218881ba134d1" "6e933f1668e124ec17fc7b6547f65ba760e06efb568a6c8091c600c67827e592" "7f6d4aebcc44c264a64e714c3d9d1e903284305fd7e319e7cb73345a9994f5ef" default))
'(default-frame-alist '((font . "Fira Code-11") (width . 90) (height . 64)))
'(delete-selection-mode nil)
'(diary-file "~/Documents/diary/diary")
'(doom-modeline-height 33)
'(fci-rule-color "#4C566A")
'(gnus-init-file "~/.emacs.d/.gnus.el")
'(hl-paren-colors '("#B9F" "#B8D" "#B7B" "#B69" "#B57" "#B45" "#B33" "#B11"))
'(hl-todo-keyword-faces
'(("TODO" . "#dc752f")
("NEXT" . "#dc752f")
("THEM" . "#2d9574")
("PROG" . "#4f97d7")
("OKAY" . "#4f97d7")
("DONT" . "#f2241f")
("FAIL" . "#f2241f")
("DONE" . "#86dc2f")
("NOTE" . "#b1951d")
("KLUDGE" . "#b1951d")
("HACK" . "#b1951d")
("TEMP" . "#b1951d")
("FIXME" . "#dc752f")
("XXX+" . "#dc752f")
("\\?\\?\\?+" . "#dc752f")))
'(initial-buffer-choice "~/Documents/journal/notes.org")
'(initial-frame-alist '((fullscreen . fullscreen)))
'(olivetti-body-width 82 nil nil "Customized with use-package olivetti")
'(org-modules
'(ol-bbdb ol-docview ol-eww ol-gnus ol-info ol-irc ol-mhe ol-rmail org-tempo ol-w3m orgtbl-sqlinsert))
'(org-plantuml-jar-path "~/.local/bin/plantuml.jar")
'(package-enable-at-startup t)
'(package-selected-packages
'(parse-csv csv atom-one-dark-theme arjen-grey-theme arc-dark-theme geiser all-the-icons-ivy all-the-icons-dired powershell forge request all-the-icons-ibuffer all-the-icons-ivy-rich all-the-icons-ivy-rich-mode all-the-icons-ibuffer-mode ox-reveal csv-mode gnuplot eglot projectile elpy color-theme-sanityinc-tomorrow nov markdown-mode markdown-preview-mode olivetti web-mode js2-mode slime flymake-racket racket-mode yaml-mode lua-mode nordless-theme use-package colorless-themes nord-theme toc-org ace-window htmlize ivy magit))
'(mu4e doom-themes doom-modeline go-mode ob-rust rust-mode spacemacs-theme dracula-theme jinja2-mode ac-emmet parse-csv csv atom-one-dark-theme arjen-grey-theme arc-dark-theme geiser all-the-icons-ivy all-the-icons-dired powershell forge request all-the-icons-ibuffer all-the-icons-ivy-rich all-the-icons-ivy-rich-mode all-the-icons-ibuffer-mode ox-reveal csv-mode gnuplot eglot projectile elpy color-theme-sanityinc-tomorrow nov markdown-mode markdown-preview-mode olivetti web-mode js2-mode slime flymake-racket racket-mode yaml-mode lua-mode nordless-theme use-package colorless-themes nord-theme toc-org ace-window htmlize ivy magit))
'(scroll-bar-mode nil)
'(tab-bar-mode nil))
'(tab-bar-mode nil)
'(tetris-x-colors
[[229 192 123]
[97 175 239]
[209 154 102]
[224 108 117]
[152 195 121]
[198 120 221]
[86 182 194]])
'(user-mail-address "marcus.kammer@mailbox.org"))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

View file

@ -10,21 +10,47 @@
'(ansi-color-names-vector
["#21252B" "#E06C75" "#98C379" "#E5C07B" "#61AFEF" "#C678DD" "#56B6C2" "#ABB2BF"])
'(backup-directory-alist '(("." . "~/.backup_filez")))
'(custom-enabled-themes '(atom-one-dark))
'(beacon-color "#d54e53")
'(company-quickhelp-color-background "#4F4F4F")
'(company-quickhelp-color-foreground "#DCDCCC")
'(custom-enabled-themes '(dracula))
'(custom-safe-themes
'("171d1ae90e46978eb9c342be6658d937a83aaa45997b1d7af7657546cae5985b" "37046960cf667c5ab3b76235d35a5db4763c531e706502a9067fa78db5a775c0" "e71c6667c26e34f3b59a1c5b3e27a1606fa427b9ba6515b0d8c8130506e68c81" "8efa3d21b3fa1ac084798fae4e89848ec26ae5c724b9417caf4922f4b2e31c2a" "5b7c31eb904d50c470ce264318f41b3bbc85545e4359e6b7d48ee88a892b1915" "9e39a8334e0e476157bfdb8e42e1cea43fad02c9ec7c0dbd5498cf02b9adeaf1" "37768a79b479684b0756dec7c0fc7652082910c37d8863c35b702db3f16000f8" "bb08c73af94ee74453c90422485b29e5643b73b05e8de029a6909af6a3fb3f58" default))
'("81c3de64d684e23455236abde277cda4b66509ef2c28f66e059aa925b8b12534" "bffa9739ce0752a37d9b1eee78fc00ba159748f50dc328af4be661484848e476" "d548ac4bb4c8c0ba8f22476f5afcea11b7f1754065eefb118e1324f8a74883fb" "06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "82d2cac368ccdec2fcc7573f24c3f79654b78bf133096f9b40c20d97ec1d8016" "fa2b58bb98b62c3b8cf3b6f02f058ef7827a8e497125de0254f56e373abee088" "e6df46d5085fde0ad56a46ef69ebb388193080cc9819e2d6024c9c6e27388ba9" "1b8d67b43ff1723960eb5e0cba512a2c7a2ad544ddb2533a90101fd1852b426e" "628278136f88aa1a151bb2d6c8a86bf2b7631fbea5f0f76cba2a0079cd910f7d" "171d1ae90e46978eb9c342be6658d937a83aaa45997b1d7af7657546cae5985b" "37046960cf667c5ab3b76235d35a5db4763c531e706502a9067fa78db5a775c0" "e71c6667c26e34f3b59a1c5b3e27a1606fa427b9ba6515b0d8c8130506e68c81" "8efa3d21b3fa1ac084798fae4e89848ec26ae5c724b9417caf4922f4b2e31c2a" "5b7c31eb904d50c470ce264318f41b3bbc85545e4359e6b7d48ee88a892b1915" "9e39a8334e0e476157bfdb8e42e1cea43fad02c9ec7c0dbd5498cf02b9adeaf1" "37768a79b479684b0756dec7c0fc7652082910c37d8863c35b702db3f16000f8" "bb08c73af94ee74453c90422485b29e5643b73b05e8de029a6909af6a3fb3f58" default))
'(default-frame-alist
'((font . "Fira Code-12")
(width . 91)
(height . 60)
(alpha . 98)))
'(delete-by-moving-to-trash t)
'(diary-file
"d:/UserData/marcus.kammer/OneDrive - Siemens AG/documents/Diary/diary")
'(display-line-numbers-grow-only t)
'(fci-rule-color "#3E4451")
'(flycheck-color-mode-line-face-to-color 'mode-line-buffer-id)
'(forge-alist
'(("github.com" "api.github.com" "github.com" forge-github-repository)
("gitlab.com" "gitlab.com/api/v4" "gitlab.com" forge-gitlab-repository)
("code.siemens.com" "code.siemens.com/api/v4" "code.siemens.com" forge-gitlab-repository)))
'(frame-background-mode 'dark)
'(hl-todo-keyword-faces
'(("TODO" . "#dc752f")
("NEXT" . "#dc752f")
("THEM" . "#2d9574")
("PROG" . "#4f97d7")
("OKAY" . "#4f97d7")
("DONT" . "#f2241f")
("FAIL" . "#f2241f")
("DONE" . "#86dc2f")
("NOTE" . "#b1951d")
("KLUDGE" . "#b1951d")
("HACK" . "#b1951d")
("TEMP" . "#b1951d")
("FIXME" . "#dc752f")
("XXX+" . "#dc752f")
("\\?\\?\\?+" . "#dc752f")))
'(initial-buffer-choice
"d:/UserData/marcus.kammer/OneDrive - Siemens AG/documents/Journal/notes.org")
'(initial-frame-alist '((fullscreen . maximized)))
'(initial-frame-alist '((vertical-scroll-bars) (fullscreen . fullscreen)))
'(ispell-program-name "~/AppData/Local/Programs/msys64/mingw64/bin/aspell.exe" t)
'(ls-lisp-dirs-first t)
'(nov-text-width nil)
'(nov-unzip-program
@ -46,7 +72,8 @@
"c:/Users/Marcus.Kammer/AppData/Local/Programs/plantuml/plantuml.jar")
'(org-refile-targets '((nil :maxlevel . 3)))
'(package-selected-packages
'(websocket soft-morning-theme atom-dark-theme atom-one-dark-theme powershell plantuml-mode ox-reveal counsel all-the-icons-dired all-the-icons-gnus all-the-icons-ibuffer all-the-icons-ivy all-the-icons-ivy-rich helpful nov gnu-elpa-keyring-update slime-company elpy eglot color-theme-sanityinc-tomorrow markdown-preview-mode request rust-mode sphinx-frontend sphinx-mode geiser slime web-mode js2-mode yaml-mode olivetti use-package nord-theme nordless-theme toc-org ace-window htmlize ivy))
'(racket-mode ob-typescript ob-translate ob-http ob-rust ob-go go-mode dracula-theme flucui-themes zenburn-theme spacemacs-theme helpful ac-emmet typescript-mode magit eglot websocket soft-morning-theme atom-dark-theme atom-one-dark-theme powershell plantuml-mode ox-reveal counsel all-the-icons-dired all-the-icons-gnus all-the-icons-ibuffer all-the-icons-ivy all-the-icons-ivy-rich nov gnu-elpa-keyring-update slime-company elpy color-theme-sanityinc-tomorrow markdown-preview-mode request rust-mode sphinx-frontend sphinx-mode geiser slime web-mode js2-mode yaml-mode olivetti use-package nord-theme nordless-theme toc-org ace-window htmlize ivy))
'(pdf-view-midnight-colors '("#b2b2b2" . "#292b2e"))
'(plantuml-default-exec-mode 'jar)
'(plantuml-jar-path
"c:/Users/Marcus.Kammer/AppData/Local/Programs/plantuml/plantuml.jar")

19
diff.conf Normal file
View file

@ -0,0 +1,19 @@
foreground #f8f8f2
background #282a36
title_fg #f8f8f2
title_bg #282a36
margin_bg #6272a4
margin_fg #44475a
removed_bg #ff5555
highlight_removed_bg #ff5555
removed_margin_bg #ff5555
added_bg #50fa7b
highlight_added_bg #50fa7b
added_margin_bg #50fa7b
filler_bg #44475a
hunk_margin_bg #44475a
hunk_bg #bd93f9
search_bg #8be9fd
search_fg #282a36
select_bg #f1fa8c
select_fg #282a36

62
dracula.conf Normal file
View file

@ -0,0 +1,62 @@
# https://draculatheme.com/kitty
#
# Installation instructions:
#
# cp dracula.conf ~/.config/kitty/
# echo "include dracula.conf" >> ~/.config/kitty/kitty.conf
#
# Then reload kitty for the config to take affect.
# Alternatively copy paste below directly into kitty.conf
foreground #f8f8f2
background #282a36
selection_foreground #ffffff
selection_background #44475a
url_color #8be9fd
# black
color0 #21222c
color8 #6272a4
# red
color1 #ff5555
color9 #ff6e6e
# green
color2 #50fa7b
color10 #69ff94
# yellow
color3 #f1fa8c
color11 #ffffa5
# blue
color4 #bd93f9
color12 #d6acff
# magenta
color5 #ff79c6
color13 #ff92df
# cyan
color6 #8be9fd
color14 #a4ffff
# white
color7 #f8f8f2
color15 #ffffff
# Cursor colors
cursor #f8f8f2
cursor_text_color background
# Tab bar colors
active_tab_foreground #282a36
active_tab_background #f8f8f2
inactive_tab_foreground #282a36
inactive_tab_background #6272a4
# Marks
mark1_foreground #282a36
mark1_background #ff5555

View file

@ -1,5 +1,6 @@
;; Auto-generated file; don't edit
((:url "https://mitpress.mit.edu/sites/default/files/sicp/full-text/book/book-Z-H-4.html#%_toc_start" :title "Structure and Interpretation of Computer Programs" :time "Fri Nov 27 09:15:13 2020")
((:url "https://nssdc.gsfc.nasa.gov/planetary/factsheet/" :title "Planetary Fact Sheet" :time "Sun Apr 25 09:56:57 2021")
(:url "https://mitpress.mit.edu/sites/default/files/sicp/full-text/book/book-Z-H-4.html#%_toc_start" :title "Structure and Interpretation of Computer Programs" :time "Fri Nov 27 09:15:13 2020")
(:url "https://www.bell-labs.com/usr/dmr/www/chist.html" :title "Chistory" :time "Sat Nov 21 10:34:20 2020")
(:url "https://courses.cs.vt.edu/~cs1104/TowerOfBabel/LISP/Lisp.outline.html" :title "A Brief Introduction to Lisp" :time "Tue Nov 17 08:36:17 2020")
(:url "http://steve-yegge.blogspot.com/2008/01/emergency-elisp.html" :title "Stevey's Blog Rants: Emergency Elisp" :time "Mon Nov 16 22:03:54 2020")

View file

@ -373,7 +373,7 @@ inactive_text_alpha 1.0
#: Fade the text in inactive windows by the specified amount (a number
#: between zero and one, with zero being fully faded).
hide_window_decorations yes
hide_window_decorations no
#: Hide the window decorations (title-bar and window borders). Whether
#: this works and exactly what effect it has depends on the window
@ -463,7 +463,7 @@ background #2E3440
#: The foreground and background colors
background_opacity 0.99
background_opacity 0.98
#: The opacity of the background. A number between 0 and 1, where 1 is
#: opaque and 0 is fully transparent. This will only work if
@ -510,37 +510,7 @@ selection_background #FFFACD
# - https://gist.github.com/marcusramberg/64010234c95a93d953e8c79fdaf94192
# - https://github.com/arcticicestudio/nord-hyper
# black
color0 #3B4252
color8 #4C566A
# red
color1 #BF616A
color9 #BF616A
# green
color2 #A3BE8C
color10 #A3BE8C
# yellow
color3 #EBCB8B
color11 #EBCB8B
# blue
color4 #81A1C1
color12 #81A1C1
# magenta
color5 #B48EAD
color13 #B48EAD
# cyan
color6 #88C0D0
color14 #8FBCBB
# white
color7 #E5E9F0
color15 #B48EAD
include dracula.conf
#: }}}