Switch to terminal emacs and one light
This commit is contained in:
@@ -10,7 +10,7 @@ All changes to the configuration should be done in =init.org=, *not* in
|
|||||||
This is what the initial =init.el= should look like.
|
This is what the initial =init.el= should look like.
|
||||||
#+BEGIN_SRC emacs-lisp :tangle no
|
#+BEGIN_SRC emacs-lisp :tangle no
|
||||||
(require 'org)
|
(require 'org)
|
||||||
(find-file (concat (getenv "HOME") "/.dots/files/emacs/.emacs.d/init.org"))
|
(find-file (concat (getenv "HOME") "/.dots/files/emacs/init.org"))
|
||||||
(org-babel-tangle)
|
(org-babel-tangle)
|
||||||
(load-file (concat (getenv "HOME") "/.emacs.d/init.el"))
|
(load-file (concat (getenv "HOME") "/.emacs.d/init.el"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@@ -244,8 +244,7 @@ Blocks will still be mono-spaced.
|
|||||||
(use-package mixed-pitch
|
(use-package mixed-pitch
|
||||||
:straight t
|
:straight t
|
||||||
:hook
|
:hook
|
||||||
(text-mode . mixed-pitch-mode)
|
(org-mode . mixed-pitch-mode))
|
||||||
(org-agenda-mode . mixed-pitch-mode))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Bars
|
*** Bars
|
||||||
@@ -297,7 +296,7 @@ Setting my beloved light theme with some icons.
|
|||||||
(setq doom-themes-enable-bold t
|
(setq doom-themes-enable-bold t
|
||||||
doom-themes-enable-italic t
|
doom-themes-enable-italic t
|
||||||
doom-solarized-light-padded-modeline nil)
|
doom-solarized-light-padded-modeline nil)
|
||||||
(load-theme 'doom-solarized-light t)
|
(load-theme 'doom-one-light t)
|
||||||
(doom-themes-org-config)
|
(doom-themes-org-config)
|
||||||
(doom-themes-treemacs-config))
|
(doom-themes-treemacs-config))
|
||||||
#+end_src
|
#+end_src
|
||||||
@@ -319,11 +318,11 @@ Use =doom-modeline= as a bar... together with icons and nyan cat!
|
|||||||
(use-package nyan-mode
|
(use-package nyan-mode
|
||||||
:straight t
|
:straight t
|
||||||
:init
|
:init
|
||||||
(nyan-mode)
|
;; (nyan-mode)
|
||||||
;; (nyan-start-animation)
|
;; (nyan-start-animation)
|
||||||
:config
|
:config
|
||||||
(setq nyan-cat-face-number 4
|
(setq nyan-cat-face-number 4
|
||||||
nyan-minimum-window-width 100))
|
nyan-minimum-window-width 120))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Inline colors
|
*** Inline colors
|
||||||
@@ -465,6 +464,7 @@ Bootstrap =org-mode= together with keybindings.
|
|||||||
:straight t
|
:straight t
|
||||||
:general
|
:general
|
||||||
(vim-leader-def 'normal 'global
|
(vim-leader-def 'normal 'global
|
||||||
|
"os" 'org-attach-screenshot
|
||||||
"oci" 'org-clock-in
|
"oci" 'org-clock-in
|
||||||
"oco" 'org-clock-out
|
"oco" 'org-clock-out
|
||||||
"ocd" 'org-clock-display
|
"ocd" 'org-clock-display
|
||||||
@@ -572,7 +572,17 @@ I need my =hjkl= :(
|
|||||||
(use-package org-attach-screenshot
|
(use-package org-attach-screenshot
|
||||||
:straight t
|
:straight t
|
||||||
:config (setq org-attach-screenshot-command-line "gnome-screenshot -a -f %f"
|
:config (setq org-attach-screenshot-command-line "gnome-screenshot -a -f %f"
|
||||||
org-attach-screenshot-auto-refresh "never"))
|
org-attach-screenshot-auto-refresh "never"
|
||||||
|
org-attach-screenshot-insertfunction
|
||||||
|
(lambda (linkfilename)
|
||||||
|
(insert (concat
|
||||||
|
"#+caption:\n#+label: fig:"
|
||||||
|
(if
|
||||||
|
(string-match ".*\/\\(.*\\)\.png" linkfilename)
|
||||||
|
(match-string 1 linkfilename)
|
||||||
|
)
|
||||||
|
"\n#+attr_latex: :width 200"
|
||||||
|
"\n[[file:" linkfilename "]]\n\n")))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** LaTeX Export
|
*** LaTeX Export
|
||||||
@@ -748,7 +758,7 @@ First of all, we need a backend for our completion and analysis.
|
|||||||
("C-l" . company-complete-selection)))
|
("C-l" . company-complete-selection)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Then we can sprinkle in a fancy front-end for it.
|
Then we can sprinkle in a fancy front-end for it. (only works in GUI emacs)
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package company-box
|
(use-package company-box
|
||||||
:straight t
|
:straight t
|
||||||
@@ -799,7 +809,8 @@ We also need the actual snippets.
|
|||||||
*** lsp-mode
|
*** lsp-mode
|
||||||
=lsp-mode= is feature-richer than =eglot=, so I'm using this one.
|
=lsp-mode= is feature-richer than =eglot=, so I'm using this one.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package lsp-mode :straight t
|
(use-package lsp-mode
|
||||||
|
:straight t
|
||||||
:commands (lsp lsp-deferred)
|
:commands (lsp lsp-deferred)
|
||||||
:init
|
:init
|
||||||
(setq lsp-keymap-prefix "C-l")
|
(setq lsp-keymap-prefix "C-l")
|
||||||
@@ -843,7 +854,7 @@ In order for =lsp-mode= to work, it needs to compile code on the =fly=.
|
|||||||
(projectile-mode +1))
|
(projectile-mode +1))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** language servers
|
*** language server configurations
|
||||||
**** rust
|
**** rust
|
||||||
Basic =rust-mode= with some fancy characters.
|
Basic =rust-mode= with some fancy characters.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@@ -867,9 +878,15 @@ I want to use =rust-analyzer= and see inlay type hints for variables.
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** haskell
|
**** haskell
|
||||||
|
=ghcup install hls=
|
||||||
|
and
|
||||||
|
=cabal install stylish-haskell=
|
||||||
|
are required.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package haskell-mode
|
(use-package haskell-mode
|
||||||
:straight t
|
:straight t
|
||||||
|
:config
|
||||||
|
(setq haskell-stylish-on-save t)
|
||||||
:hook
|
:hook
|
||||||
(haskell-mode . interactive-haskell-mode)
|
(haskell-mode . interactive-haskell-mode)
|
||||||
(haskell-mode . prettify-symbols-mode)
|
(haskell-mode . prettify-symbols-mode)
|
||||||
@@ -887,9 +904,6 @@ I want to use =rust-analyzer= and see inlay type hints for variables.
|
|||||||
(haskell-literate-mode . lsp))
|
(haskell-literate-mode . lsp))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** python
|
|
||||||
Python's lsp has auto configuration for =lsp-mode=
|
|
||||||
|
|
||||||
*** octave
|
*** octave
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package octave-mode
|
(use-package octave-mode
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Marco Thomas
|
name = Marco Thomas
|
||||||
email = rb.ma.tho@gmail.com
|
email = rb.ma.tho@gmail.com
|
||||||
[includeIf "gitdir:~/dev/hm/lrz-gitlab/**"]
|
[includeIf "gitdir:~/dev/uni/lrz-gitlab/**"]
|
||||||
path = "~/dev/hm/lrz-gitlab/.gitconfig"
|
path = "~/dev/uni/lrz-gitlab/.gitconfig"
|
||||||
[alias]
|
[alias]
|
||||||
aa = add .
|
aa = add .
|
||||||
st = status
|
st = status
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
co = checkout
|
co = checkout
|
||||||
b = branch
|
b = branch
|
||||||
pl = pull --rebase
|
pl = pull --rebase
|
||||||
|
u = pull --rebase
|
||||||
ps = push
|
ps = push
|
||||||
lg = log --oneline --decorate --graph
|
lg = log --oneline --decorate --graph
|
||||||
yoink = pull
|
yoink = pull
|
||||||
|
|||||||
@@ -50,4 +50,4 @@ set -g window-status-current-style "underscore, bold"
|
|||||||
set -g window-status-current-format "#I:#W"
|
set -g window-status-current-format "#I:#W"
|
||||||
set -g window-status-format "#I:#W"
|
set -g window-status-format "#I:#W"
|
||||||
set -g status-left " "
|
set -g status-left " "
|
||||||
set -g status-right "#S @ #h "
|
set -g status-right "#S @ #h - %H:%M"
|
||||||
|
|||||||
@@ -59,8 +59,13 @@ alias nssh='SSH_AUTH_SOCK= ssh'
|
|||||||
alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"'
|
alias cpu='watch -n.1 "grep \"^[c]pu MHz\" /proc/cpuinfo"'
|
||||||
|
|
||||||
# troll
|
# troll
|
||||||
alias powershell='PS1="windowsadm@powershell$ " bash'
|
alias powershell='clear && PS1="windowsadm@powershell$ " bash'
|
||||||
alias mucdai='rm -rf'
|
alias mucdai='rm -rf'
|
||||||
|
alias bw='mv'
|
||||||
|
alias lö='rm'
|
||||||
|
alias zg='ls'
|
||||||
|
alias ädrbes='chown'
|
||||||
|
alias erstelle='touch'
|
||||||
|
|
||||||
if [ -f ~/.zshrc_local ]; then
|
if [ -f ~/.zshrc_local ]; then
|
||||||
source ~/.zshrc_local
|
source ~/.zshrc_local
|
||||||
|
|||||||
Reference in New Issue
Block a user