Archived
1
0
Fork 0
This commit is contained in:
J. Elfring (i) 2024-02-28 15:54:52 +01:00
parent a14e14e55e
commit 9364a2f19d
5 changed files with 6 additions and 228 deletions

View file

@ -1,155 +0,0 @@
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional.
(setq user-full-name (getenv "my_name")
user-mail-address (getenv "my_mail"))
;; Doom exposes five (optional) variables for controlling fonts in Doom:
;;
;; - `doom-font' -- the primary font to use
;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable)
;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for
;; presentations or streaming.
;; - `doom-unicode-font' -- for unicode glyphs
;; - `doom-serif-font' -- for the `fixed-pitch-serif' face
;;
;; See 'C-h v doom-font' for documentation and more examples of what they
;; accept. For example:
;;
;;(setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light)
;; doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13))
;;
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
;; refresh your font settings. If Emacs still can't find your font, it likely
;; wasn't installed correctly. Font issues are rarely Doom issues!
;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default:
;;(setq doom-theme 'doom-palenight)
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type t)
;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/")
;; Whenever you reconfigure a package, make sure to wrap your config in an
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
;;
;; (after! PACKAGE
;; (setq x y))
;;
;; The exceptions to this rule:
;;
;; - Setting file/directory variables (like `org-directory')
;; - Setting variables which explicitly tell you to set them before their
;; package is loaded (see 'C-h v VARIABLE' to look up their documentation).
;; - Setting doom variables (which start with 'doom-' or '+').
;;
;; Here are some additional functions/macros that will help you configure Doom.
;;
;; - `load!' for loading external *.el files relative to this one
;; - `use-package!' for configuring packages
;; - `after!' for running code after a package has loaded
;; - `add-load-path!' for adding directories to the `load-path', relative to
;; this file. Emacs searches the `load-path' when you load packages with
;; `require' or `use-package'.
;; - `map!' for binding new keys
;;
;; To get information about any of these functions/macros, move the cursor over
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
;; This will open documentation for it, including demos of how they are used.
;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces,
;; etc).
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
;;
;;
;; Keymaps
;;(global-set-key [f8] 'neotree-toggle)
(global-set-key [f8] 'treemacs)
;; Just settings...
(setq confirm-kill-emacs nil)
(setq treemacs-show-hidden-files nil)
(setq ispell-dictionary "de_DE") ;; also make sure .emacs.d/.local/etc/ispell exists
;; org-mode options
(after! org
;; Setup folding bit not for agenda
(setq org-agenda-inhibit-startup t)
(setq org-startup-folded 'content)
(setq org-todo-keywords '((sequence "TODO(t)" "BACKLOG(b)" "|" "DONE(d)" "CLOSED(c)")
(sequence "REPORT" "BUG" "KNOWNCAUSE" "|" "FIXED")))
;; Setup a beautiful export
(setq org-export-default-language "de")
(setq org-export-with-toc nil)
(setq org-export-exclude-tags '("noexport" "tCLOSED"))
(setq org-export-with-tasks '("TODO" "DONE" "BACKLOG"))
(setq org-latex-default-class "je-article")
(add-to-list 'org-latex-packages-alist '("AUTO" "babel" nil))
;; Customizations to the default export template
(with-eval-after-load 'ox-latex (add-to-list 'org-latex-classes '("je-article"
"\\documentclass[a4paper,twocolumn]{article}
\\usepackage{lmodern}
\\usepackage{enumitem}
\\setlist{noitemsep}
\\usepackage{xcolor}
\\usepackage{sectsty}
\\allsectionsfont{\\raggedright}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
;; An export todo-heading style for reference
(defun ref-org-latex-format-headline-function (todo todo-type priority text tags _info)
"Default format function for a headline. See `org-latex-format-headline-function' for details."
(concat
(and todo (format "{\\bfseries\\sffamily\\color{%s} %s} "
(pcase todo-type
('todo "orange")
('done "green"))
todo))
(and priority (format "\\framebox{\\#%c} " priority))
text
(and tags
(format "\\hfill{}\\textsc{%s}"
(mapconcat #'org-latex--protect-text tags ":")))))
;; My export todo-heading style
(defun je-org-latex-format-headline-function (todo todo-type priority text tags _info)
"Default format function for a headline. See `org-latex-format-headline-function' for details."
(concat
(and todo (format "{\\footnotesize\\color{%s} %s} "
(pcase todo-type
('todo "olive")
('done "teal"))
todo))
text
(and tags
(format "\\hfill{}\\textsc{%s}"
(mapconcat #'org-latex--protect-text tags ":")
))))
(setq org-latex-format-headline-function 'je-org-latex-format-headline-function))
;; Use the internal latex viewer
(setq +latex-viewers '(pdf-tools skim))

View file

@ -1,14 +0,0 @@
(custom-set-variables
;; custom-set-variables was added by Custom.
;; 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.
'(custom-safe-themes
'("adaf421037f4ae6725aa9f5654a2ed49e2cd2765f71e19a7d26a454491b486eb" "545ab1a535c913c9214fe5b883046f02982c508815612234140240c129682a68" "2078837f21ac3b0cc84167306fa1058e3199bbd12b6d5b56e3777a4125ff6851" "1cae4424345f7fe5225724301ef1a793e610ae5a4e23c023076dc334a9eb940a" "aec7b55f2a13307a55517fdf08438863d694550565dee23181d2ebd973ebd6b8" "683b3fe1689da78a4e64d3ddfce90f2c19eb2d8ab1bab1738a63d8263119c3f4" "02f57ef0a20b7f61adce51445b68b2a7e832648ce2e7efb19d217b6454c1b644" "00cec71d41047ebabeb310a325c365d5bc4b7fab0a681a2a108d32fb161b4006" "1a1ac598737d0fcdc4dfab3af3d6f46ab2d5048b8e72bc22f50271fd6d393a00" "7a424478cb77a96af2c0f50cfb4e2a88647b3ccca225f8c650ed45b7f50d9525" default))
'(package-selected-packages '(ewal-doom-themes doom-themes)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; 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.
)

View file

@ -1,53 +0,0 @@
;; -*- no-byte-compile: t; -*-
;;; $DOOMDIR/packages.el
;; To install a package with Doom you must declare them here and run 'doom sync'
;; on the command line, then restart Emacs for the changes to take effect -- or
;; use 'M-x doom/reload'.
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
;(package! some-package)
(package! doom-themes)
;; To install a package directly from a remote git repo, you must specify a
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
;; https://github.com/radian-software/straight.el#the-recipe-format
;(package! another-package
; :recipe (:host github :repo "username/repo"))
;; If the package you are trying to install does not contain a PACKAGENAME.el
;; file, or is located in a subdirectory of the repo, you'll need to specify
;; `:files' in the `:recipe':
;(package! this-package
; :recipe (:host github :repo "username/repo"
; :files ("some-file.el" "src/lisp/*.el")))
;; If you'd like to disable a package included with Doom, you can do so here
;; with the `:disable' property:
;(package! builtin-package :disable t)
;; You can override the recipe of a built in package without having to specify
;; all the properties for `:recipe'. These will inherit the rest of its recipe
;; from Doom or MELPA/ELPA/Emacsmirror:
;(package! builtin-package :recipe (:nonrecursive t))
;(package! builtin-package-2 :recipe (:repo "myfork/package"))
;; Specify a `:branch' to install a package from a particular branch or tag.
;; This is required for some packages whose default branch isn't 'master' (which
;; our package manager can't deal with; see radian-software/straight.el#279)
;(package! builtin-package :recipe (:branch "develop"))
;; Use `:pin' to specify a particular commit to install.
;(package! builtin-package :pin "1a2b3c4d5e")
;; Doom's packages are pinned to a specific commit and updated from release to
;; release. The `unpin!' macro allows you to unpin single packages...
;(unpin! pinned-package)
;; ...or multiple packages
;(unpin! pinned-package another-pinned-package)
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
;(unpin! t)

View file

@ -109,10 +109,10 @@ alias mv='mv -i'
alias untar='tar xvf' alias untar='tar xvf'
# Pipe my public key to my clipboard. # Pipe my public key to my clipboard.
alias pubkey="more ~/.ssh/id_rsa.pub | xclip -selection clipboard | echo '=> Public key copied to pasteboard.'" alias pubkey="more ~/.ssh/id.pub | xclip -selection clipboard | echo '=> Public key copied to pasteboard.'"
# Pipe my private key to my clipboard. # Pipe my private key to my clipboard.
alias privkey="more ~/.ssh/id_rsa | xclip -selection clipboard | echo '=> Private key copied to pasteboard.'" alias privkey="more ~/.ssh/id | xclip -selection clipboard | echo '=> Private key copied to pasteboard.'"
# vi == vim # vi == vim
alias vi='vim' alias vi='vim'

View file

@ -355,10 +355,10 @@ d_clean(){
docker volume rm $(docker volume ls -f dangling=true) docker volume rm $(docker volume ls -f dangling=true)
} }
d_reset(){ d_reset(){
docker stop $(docker ps -q) docker stop $(docker ps -q) 2>/dev/null
docker rm -f $(docker ps -aq) docker rm -f $(docker ps -aq) 2>/dev/null
docker rmi -f $(docker images -qa) docker rmi -f $(docker images -qa) 2>/dev/null
docker volume rm $(docker volume ls -q) docker volume rm $(docker volume ls -q) 2>/dev/null
} }