.
This commit is contained in:
@@ -1,100 +1,42 @@
|
||||
;;; $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 "Sebastian Moser"
|
||||
;; user-mail-address "c2vi.dev@gmail.com")
|
||||
|
||||
;; 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-symbol-font' -- for symbols
|
||||
;; - `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-one)
|
||||
;; Specify both a dark and light theme, like so and Doom will choose which one
|
||||
;; to load based on your system light/dark setting:
|
||||
;;
|
||||
;; (setq doom-theme '(doom-one . doom-one-light)) ; (DARK . LIGHT)
|
||||
;;
|
||||
;; If you want more pro-active theme switching based on OS light/dark mode, look
|
||||
;; up the `auto-dark' package.
|
||||
;;; relative line numbers
|
||||
(setq display-line-numbers 'relative)
|
||||
|
||||
;; 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 "relative")
|
||||
|
||||
;; 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!
|
||||
;;; set my org directory
|
||||
(setq org-directory "~/work/things/org")
|
||||
|
||||
|
||||
;; Whenever you reconfigure a package, make sure to wrap your config in an
|
||||
;; `with-eval-after-load' block, otherwise Doom's defaults may override your
|
||||
;; settings. E.g.
|
||||
;;
|
||||
;; (with-eval-after-load '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 them up).
|
||||
;; - 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
|
||||
;; - `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.
|
||||
;;; set my name and email
|
||||
(setq user-full-name "Sebastian Moser"
|
||||
user-mail-address "c2vi.dev@gmail.com")
|
||||
|
||||
|
||||
;;; theme
|
||||
(setq doom-theme 'doom-one)
|
||||
|
||||
|
||||
;;; C-p to be M-x
|
||||
(map! "C-p" #'execute-extended-command)
|
||||
;;(map! :leader "a" #'execute-extended-command)
|
||||
;;(map! :nv ":" #'execute-extended-command)
|
||||
|
||||
(after! evil
|
||||
;;(map! :nv ":" #'execute-extended-command)
|
||||
(map! :gnv "C-p" #'execute-extended-command)
|
||||
(map! :gnv "C-e" #'projectile-find-file)
|
||||
)
|
||||
|
||||
|
||||
|
||||
;;; projectile find file - quick switcher
|
||||
(after! evil
|
||||
(map! :gnv "C-e" #'projectile-find-file)
|
||||
)
|
||||
(after! 'better-jumper
|
||||
(map! :gnv "C-i" #'projectile-find-file)
|
||||
)
|
||||
|
||||
(with-eval-after-load 'projectile
|
||||
(add-to-list 'projectile-globally-ignored-directories "node_modules")
|
||||
(add-to-list 'projectile-globally-ignored-directories ".obsidian")
|
||||
@@ -102,17 +44,19 @@
|
||||
)
|
||||
|
||||
|
||||
|
||||
;;; obsidian
|
||||
(after! obsidian
|
||||
(setq obsidian-directory "~/work/things"
|
||||
obsidian-inbox-directory "semi-public"
|
||||
markdown-enable-wiki-links t
|
||||
)
|
||||
|
||||
(global-obsidian-mode t)
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
;;; clipboard
|
||||
(after! evil
|
||||
(setq interprogram-cut-function nil
|
||||
@@ -142,6 +86,7 @@
|
||||
:i "C-v" #'my/clipboard-paste) ; insert-state paste, terminal-style
|
||||
|
||||
|
||||
|
||||
;;; in buffer completions
|
||||
(setq tab-always-indent 'complete)
|
||||
(after! corfu
|
||||
@@ -181,13 +126,40 @@
|
||||
(map! :leader "m r" #'eval-print-last-sexp)
|
||||
|
||||
|
||||
|
||||
;;;; font/zoom
|
||||
(setq doom-font (font-spec
|
||||
;:family "Hack Mono"
|
||||
:size 22 :weight 'regular))
|
||||
|
||||
|
||||
;;; have authinfo file in my $SECRETS_DIR
|
||||
(setq auth-sources '("~/secrets/authinfo"))
|
||||
|
||||
|
||||
|
||||
;;; empv
|
||||
(after! empv
|
||||
(customize-set-variable 'empv-subsonic-username "c2vi")
|
||||
(customize-set-variable 'empv-subsonic-url "https://tunes.c2vi.dev")
|
||||
(customize-set-variable 'empv-subsonic-password (f-read-text "~/secrets/tunes-password"))
|
||||
)
|
||||
|
||||
|
||||
|
||||
;;; supersonic
|
||||
(after! supersonic
|
||||
;;(setq supersonic-host "https://tunes.c2vi.dev")
|
||||
)
|
||||
|
||||
|
||||
|
||||
;;; scratch
|
||||
(defun my/scratch ()
|
||||
(lookup-key corfu-map (kbd "C-u"))
|
||||
(lookup-key corfu-map (kbd "C-i"))
|
||||
(define-key corfu-map (kbd "C-i") 'my/corfu-insert-first)
|
||||
(substitute-command-keys "\\{corfu-map}")
|
||||
|
||||
)
|
||||
|
||||
;(setq completion-styles '(base initials orderless flex partial-completion substring))
|
||||
|
||||
|
||||
15
doomdir/custom.el
Normal file
15
doomdir/custom.el
Normal file
@@ -0,0 +1,15 @@
|
||||
;;; -*- lexical-binding: t -*-
|
||||
(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
|
||||
'("0325a6b5eea7e5febae709dab35ec8648908af12cf2d2b569bedc8da0a3a81c1"
|
||||
"aec7b55f2a13307a55517fdf08438863d694550565dee23181d2ebd973ebd6b8" default)))
|
||||
(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.
|
||||
)
|
||||
@@ -54,3 +54,10 @@
|
||||
|
||||
(package! tldr)
|
||||
(package! obsidian)
|
||||
(package! empv)
|
||||
(package! f)
|
||||
|
||||
(package! supersonic
|
||||
:recipe (:host github :repo "systemfreund/supersonic.el" )
|
||||
:pin "8d422489ffc84cc3907232afb51349c576c26cba"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user