even more 😓

This commit is contained in:
Thomas Ruoff
2019-10-06 22:50:06 +02:00
parent 18407d1c45
commit 9206006d3b

View File

@@ -3,27 +3,7 @@
* bootstrapping * bootstrapping
I've manly been following the [[https://github.com/danielmai/.emacs.d][Daniel Mai's approach]] to bootstrap the config. I've manly been following the [[https://github.com/danielmai/.emacs.d][Daniel Mai's approach]] to bootstrap the config.
* Private Settings * Looks
#+BEGIN_SRC emacs-lisp
(setq user-full-name "Thomas Ruoff"
user-mail-address "thomasruoff@gmail.com"
calendar-latitude 48.286993
calendar-longitude 8.726407
calendar-location-name "Rosenfeld, Germany")
#+END_SRC
* Customize settings
Set up the customize file to its own separate file, instead of saving customize settings in init.el.
- [ ] TODO do not load when file is missing
#+BEGIN_SRC emacs-lisp
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(load custom-file)
#+END_SRC
* looks
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package doom-themes (use-package doom-themes
:ensure t :ensure t
@@ -43,7 +23,7 @@
(find-file "~/.dotfiles/emacs/.emacs.d/emacs.org")) (find-file "~/.dotfiles/emacs/.emacs.d/emacs.org"))
#+END_SRC #+END_SRC
* backups * Backups
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq make-backup-files nil) (setq make-backup-files nil)
@@ -54,10 +34,10 @@
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)
(setq initial-scratch-message "* Now, go wild!") (setq initial-scratch-message "; Now, go wild!")
#+END_SRC #+END_SRC
* editor * Editor
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq-default tab-width 4 (setq-default tab-width 4
tab-always-indent t tab-always-indent t
@@ -78,35 +58,35 @@
tabify-regexp "^\t* [ \t]+") ; for :retab tabify-regexp "^\t* [ \t]+") ; for :retab
#+END_SRC #+END_SRC
* keybindings * Keybindings
- [ ] figure out how to define mode keybindings with general - [ ] figure out how to define mode keybindings with general
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package general (use-package general
:ensure t :ensure t
:config :config
(general-define-key (general-define-key
:states '(normal visual insert emacs) :states '(normal visual insert emacs)
:prefix "SPC" :prefix "SPC"
:non-normal-prefix "M-SPC" :non-normal-prefix "M-SPC"
"/" '(counsel-rg :wich-key "rg") "/" '(counsel-rg :wich-key "rg")
"TAB" '(ivy-switch-buffer :which-key "prev buffer") "b" '(ivy-switch-buffer :which-key "Switch Buffer")
"SPC" '(counsel-M-x :which-key "M-x") "SPC" '(counsel-M-x :which-key "M-x")
"w" '(hydra-window/body :which-key "Window") "r" '(restart-emacs :which-key "Restart")
"g" '(:ignore t :which-key "Git") "g" '(:ignore t :which-key "Git")
"gg" '(magit :which-key "Magit Status") "gg" '(magit :which-key "Magit Status")
"h" '(:ignore t :which-key "Help")
"hc" '(apropos-command :which-key "Command")
"hv" '(apropos-variable :which-key "Variable")
"f" '(:ignore t :which-key "Files") "h" '(:ignore t :which-key "Help")
"ff" '(counsel-git :which-key "find in git dir") "hc" '(counsel-describe-function :which-key "Command")
"fd" '(find-user-init-file :which-key "open init file") "hv" '(counsel-describe-variable :which-key "Variable")
"m" '(:ignore t :which-key "Mode") "f" '(:ignore t :which-key "Files")
;"m'" '(:major-modes org-mode :which-key "Edit code block") "ff" '(counsel-git :which-key "find in git dir")
)) "fd" '(find-user-init-file :which-key "open init file")
"m" '(:ignore t :which-key "Mode")
"m'" '(org-edit-src-code :which-key "Edit code block")
))
#+END_SRC #+END_SRC
* evil * evil
@@ -129,7 +109,7 @@
(evil-collection-init)) (evil-collection-init))
#+END_SRC #+END_SRC
* which key * which-key
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package which-key (use-package which-key
:ensure t :ensure t
@@ -140,10 +120,10 @@
(which-key-mode 1)) (which-key-mode 1))
#+END_SRC #+END_SRC
* completion * Completion
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package company (use-package company
:ensure t :ensure t
:init (add-hook 'after-init-hook 'global-company-mode)) :init (add-hook 'after-init-hook 'global-company-mode))
#+END_SRC #+END_SRC
* ivy * ivy
@@ -209,7 +189,7 @@
(setq projectile-require-project-root nil)) (setq projectile-require-project-root nil))
#+END_SRC #+END_SRC
* git * Git
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package magit (use-package magit
:ensure t :ensure t
@@ -222,17 +202,42 @@
:ensure t) :ensure t)
#+END_SRC #+END_SRC
* org * Org-Mode
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package f (use-package f
:ensure t) :ensure t)
(use-package org (use-package org
:ensure t :ensure t
:config :config
(setq org-directory "~/org/")) (setq org-directory "~/org/")
(org-indent-mode t))
(use-package org-bullets (use-package org-bullets
:ensure t :ensure t
:config (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))) :config (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
#+END_SRC #+END_SRC
* Restart
#+BEGIN_SRC emacs-lisp
(use-package restart-emacs :ensure t)
#+END_SRC
* Customize settings
Set up the customize file to its own separate file, instead of saving customize settings in init.el.
- [ ] TODO do not load when file is missing
#+BEGIN_SRC emacs-lisp
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(load custom-file)
#+END_SRC
* Private Settings
#+BEGIN_SRC emacs-lisp
(setq user-full-name "Thomas Ruoff"
user-mail-address "thomasruoff@gmail.com"
calendar-latitude 48.286993
calendar-longitude 8.726407
calendar-location-name "Rosenfeld, Germany")
#+END_SRC