Browse Source

tabs stuff

master
Linus Sehn 9 months ago
parent
commit
e306f11f53
  1. 44
      config.el
  2. 55
      config.org
  3. 13
      init.el
  4. 4
      packages.el
  5. 6
      themes/doom-homage-black-theme.el

44
config.el

@ -22,6 +22,8 @@
(display-time-mode 1)
(add-to-list 'default-frame-alist '(fullscreen . maximized))
(defun my/toggle-transparency ()
(interactive)
(let ((alpha (frame-parameter nil 'alpha)))
@ -43,7 +45,7 @@
:after '(evil-window-split evil-window-vsplit)
(+ivy/switch-buffer))
(setq +ivy-buffer-preview t)
;; (setq +ivy-buffer-preview t)
(map! :map evil-window-map
"SPC" #'evil-window-rotate-downwards)
@ -60,6 +62,13 @@
(after! company-box
(setq company-box-max-candidates 10))
(after! centaur-tabs
(setq centaur-tabs-set-bar 'over
;; centaur-tabs-set-close-button nil
centaur-tabs-height 40)
(centaur-tabs-change-fonts "Rubik" 116)
(centaur-tabs-group-by-projectile-project))
(use-package! dired-x
:unless (featurep! +ranger)
:hook (dired-mode . dired-omit-mode)
@ -178,8 +187,10 @@
;; (add-hook 'mu4e-compose-mode-hook
;; (defun my-do-compose-stuff ()
;; "My settings for message composition."
;; (set-fill-column 72)
;; (flyspell-mode)))
;; (mml-secure-message-sign-encrypt)
;; ))
(add-hook 'message-send-hook 'mml-secure-message-sign-encrypt)
(after! org-msg
(setq
@ -472,7 +483,7 @@ bibliography:../bib/library.bib
:after org
:config
(setq-default org-download-method 'directory
org-download-screenshot-method "grimshot save area %s"
;; org-download-screenshot-method "grimshot save area %s"
org-download-image-dir "../img"
org-download-heading-lvl nil))
@ -498,7 +509,8 @@ bibliography:../bib/library.bib
(use-package! mathpix
:custom ((mathpix-app-id "mathpix_sehn_tech_b5ad38")
(mathpix-app-key "f965173bcdbfec889c20")
(mathpix-screenshot-method "grimshot save area %s")))
;; (mathpix-screenshot-method "grimshot save area %s")
))
(after! org
(setq org-latex-pdf-process (list "latexmk -shell-escape -bibtex -f -pdf %f")
@ -600,14 +612,22 @@ bibliography:../bib/library.bib
(split-string keyword ","))
",")))))))
(add-hook! 'yaml-mode-hook '(lambda () (ansible 1)))
(setq ansible-vault-password-file "~/.vault_pass.sh")
(after! geiser-mode
(setq geiser-active-implementations '(mit)))
(map!
("M-q" #'evil-quit)
("M-a" #'evil-window-left)
("M-d" #'evil-window-right)
("M-q" #'centaur-tabs-backward)
("M-e" #'centaur-tabs-forward)
("M-w" #'kill-current-buffer)
("M-Q" #'evil-quit)
:leader
(:prefix-map ("a" . "ansible")
:desc "Decrypt buffer" "d" #'ansible-decrypt-buffer
:desc "Encrypt buffer" "e" #'ansible-encrypt-buffer)
(:prefix-map ("e" . "exocortex")
:desc "Search for name" "e" #'org-roam-find-file
:desc "Search for symbol" "x" #'my/search-exocortex
@ -622,11 +642,13 @@ bibliography:../bib/library.bib
:desc "Insert math from screen" "m" #'mathpix-screenshot)
(:prefix ("t" . "toggle/tangle")
:desc "Detangle" "d" #'org-babel-detangle
:desc "Transparency" "p" #'my/toggle-transparency))
:desc "Transparency" "p" #'my/toggle-transparency)
(:prefix ("f" . "file")
:desc "Open neotree" "t" #'+neotree/open))
(map! :map org-mode-map
("M-i" #'org-ref-ivy-insert-cite-link)
("M-e" #'my/org-ref-update-pre-post-text)
("M-u" #'my/org-ref-update-pre-post-text)
("M-p" #'my/org-ref-open-pdf-at-point)
("M-n" #'org-ref-open-notes-at-point)
("M-r" #'org-roam-insert)
@ -641,7 +663,7 @@ bibliography:../bib/library.bib
(:prefix "i"
:desc "Cite source" "c" #'org-ref-helm-insert-cite-link
:desc "Insert anki note" "a" #'anki-editor-insert-note)
(:prefix ("a" . "anki")
(:prefix ("a" . "anki/ansible")
:desc "Push notes to anki" "p" #'anki-editor-push-notes
:desc "Cloze region" "c" #'anki-editor-cloze-dwim))
(:localleader

55
config.org

@ -38,7 +38,10 @@
(display-time-mode 1)
#+end_src
** Start maximised
#+begin_src emacs-lisp :tangle yes :results silent
(add-to-list 'default-frame-alist '(fullscreen . maximized))
#+end_src
** Transparency
#+begin_src emacs-lisp :tangle yes :results silent
@ -58,7 +61,7 @@
(after! persp-mode
(setq persp-emacsclient-init-frame-behaviour-override "main"))
#+end_src
** Windows
** Window Management
#+begin_src emacs-lisp :tangle yes :results silent
(setq evil-vsplit-window-right t
evil-split-window-below t)
@ -67,7 +70,7 @@
:after '(evil-window-split evil-window-vsplit)
(+ivy/switch-buffer))
(setq +ivy-buffer-preview t)
;; (setq +ivy-buffer-preview t)
(map! :map evil-window-map
"SPC" #'evil-window-rotate-downwards)
@ -93,6 +96,15 @@
(after! company-box
(setq company-box-max-candidates 10))
#+end_src
** Tabs
#+begin_src emacs-lisp :tangle yes :results silent
(after! centaur-tabs
(setq centaur-tabs-set-bar 'over
;; centaur-tabs-set-close-button nil
centaur-tabs-height 40)
(centaur-tabs-change-fonts "Rubik" 116)
(centaur-tabs-group-by-projectile-project))
#+end_src
* File Manager
** Define default applications
@ -243,8 +255,10 @@ next sync operation.
;; (add-hook 'mu4e-compose-mode-hook
;; (defun my-do-compose-stuff ()
;; "My settings for message composition."
;; (set-fill-column 72)
;; (flyspell-mode)))
;; (mml-secure-message-sign-encrypt)
;; ))
(add-hook 'message-send-hook 'mml-secure-message-sign-encrypt)
(after! org-msg
(setq
@ -586,7 +600,7 @@ bibliography:../bib/library.bib
:after org
:config
(setq-default org-download-method 'directory
org-download-screenshot-method "grimshot save area %s"
;; org-download-screenshot-method "grimshot save area %s"
org-download-image-dir "../img"
org-download-heading-lvl nil))
#+end_src
@ -620,7 +634,8 @@ a helper function for jumping to source
(use-package! mathpix
:custom ((mathpix-app-id "mathpix_sehn_tech_b5ad38")
(mathpix-app-key "f965173bcdbfec889c20")
(mathpix-screenshot-method "grimshot save area %s")))
;; (mathpix-screenshot-method "grimshot save area %s")
))
#+end_src
*** TODO Publish
**** Export to PDF
@ -805,6 +820,12 @@ a helper function for jumping to source
",")))))))
#+end_src
* Programming
** Ansible
#+begin_src emacs-lisp :tangle yes :results silent
(add-hook! 'yaml-mode-hook '(lambda () (ansible 1)))
(setq ansible-vault-password-file "~/.vault_pass.sh")
#+end_src
** Python
#+begin_src emacs-lisp :tangle no
(defvar mad/lsp-venv nil)
@ -831,10 +852,14 @@ a helper function for jumping to source
** Global
#+begin_src emacs-lisp :tangle yes :results silent
(map!
("M-q" #'evil-quit)
("M-a" #'evil-window-left)
("M-d" #'evil-window-right)
("M-q" #'centaur-tabs-backward)
("M-e" #'centaur-tabs-forward)
("M-w" #'kill-current-buffer)
("M-Q" #'evil-quit)
:leader
(:prefix-map ("a" . "ansible")
:desc "Decrypt buffer" "d" #'ansible-decrypt-buffer
:desc "Encrypt buffer" "e" #'ansible-encrypt-buffer)
(:prefix-map ("e" . "exocortex")
:desc "Search for name" "e" #'org-roam-find-file
:desc "Search for symbol" "x" #'my/search-exocortex
@ -849,7 +874,9 @@ a helper function for jumping to source
:desc "Insert math from screen" "m" #'mathpix-screenshot)
(:prefix ("t" . "toggle/tangle")
:desc "Detangle" "d" #'org-babel-detangle
:desc "Transparency" "p" #'my/toggle-transparency))
:desc "Transparency" "p" #'my/toggle-transparency)
(:prefix ("f" . "file")
:desc "Open neotree" "t" #'+neotree/open))
#+end_src
** =org-mode-map=
@ -861,7 +888,7 @@ a helper function for jumping to source
#+begin_src emacs-lisp :tangle yes :results silent
(map! :map org-mode-map
("M-i" #'org-ref-ivy-insert-cite-link)
("M-e" #'my/org-ref-update-pre-post-text)
("M-u" #'my/org-ref-update-pre-post-text)
("M-p" #'my/org-ref-open-pdf-at-point)
("M-n" #'org-ref-open-notes-at-point)
("M-r" #'org-roam-insert)
@ -876,7 +903,7 @@ a helper function for jumping to source
(:prefix "i"
:desc "Cite source" "c" #'org-ref-helm-insert-cite-link
:desc "Insert anki note" "a" #'anki-editor-insert-note)
(:prefix ("a" . "anki")
(:prefix ("a" . "anki/ansible")
:desc "Push notes to anki" "p" #'anki-editor-push-notes
:desc "Cloze region" "c" #'anki-editor-cloze-dwim))
(:localleader
@ -894,4 +921,4 @@ a helper function for jumping to source
(map! :map pdf-view-mode-map
"C-c i" 'org-noter-insert-note)
#+end_src

13
init.el

@ -20,6 +20,7 @@
neotree
vc-gutter
vi-tilde-fringe
tabs
window-select
workspaces
zen
@ -54,8 +55,8 @@
direnv
eval
(lookup +docsets +offline +dictionary)
(lsp +peek)
magit
lsp
(magit +forge)
pass
pdf
rgb
@ -74,12 +75,12 @@
(latex +latexmk +cdlatex)
(markdown +grip)
(org +dragndrop +hugo +journal +jupyter +noter +present )
(php +lsp)
(python +lsp)
(racket +xp)
rest
scheme
(sh +lsp)
web
;; scheme
(sh +lsp) web
:email
mu4e

4
packages.el

@ -5,8 +5,8 @@
(package! org-super-agenda)
(package! anki-editor)
;; Disabled stuff for terminal usage
;; (package! solaire-mode :disable f)
;; Disabled stuff for terminal
(package! solaire-mode :disable t)
;; Forked
(package! org-clock-budget

6
themes/doom-homage-black-theme.el

@ -41,12 +41,12 @@ determine the exact padding."
(grey base5)
(red '("#ff6c6b" "#ff6655" "red" ))
(orange '("#b4916d" "#b4916d" "brightred" ))
(orange '("#da8548" "#da8548" "brightred" ))
(green '("#98be65" "#99bb66" "green" ))
(teal '("#4db5bd" "#44b9b1" "brightgreen" ))
(yellow '("#ECBE7B" "#ECBE7B" "yellow" ))
(blue '("#0170bf" "#0170bf" "brightblue" ))
(dark-blue '("#003c64" "#0170bf" "blue" ))
(blue '("#51afef" "#51afef" "brightblue" ))
(dark-blue '("#003c64" "#51afef" "blue" ))
(magenta '("#c678dd" "#c678dd" "brightmagenta"))
(violet '("#a9a1e1" "#a9a1e1" "magenta" ))
(cyan '("#46D9FF" "#46D9FF" "brightcyan" ))

Loading…
Cancel
Save