Dired + Transparency

This commit is contained in:
Aleksandr Lebedev 2025-01-29 23:04:03 +01:00
parent be70ab61f3
commit b2c1e8732b

View file

@ -14,6 +14,7 @@
- [[#company][Company]] - [[#company][Company]]
- [[#dashboard][Dashboard]] - [[#dashboard][Dashboard]]
- [[#diminish][Diminish]] - [[#diminish][Diminish]]
- [[#dired-file-manager][DIRED (File manager)]]
- [[#flycheck][FLYCHECK]] - [[#flycheck][FLYCHECK]]
- [[#fonts][Fonts]] - [[#fonts][Fonts]]
- [[#zooming-inout][Zooming In/Out]] - [[#zooming-inout][Zooming In/Out]]
@ -53,6 +54,7 @@
- [[#descriptions][Descriptions]] - [[#descriptions][Descriptions]]
- [[#theme][Theme]] - [[#theme][Theme]]
- [[#theme-loading][Theme loading]] - [[#theme-loading][Theme loading]]
- [[#transparency][Transparency]]
- [[#which-key][WHICH-KEY]] - [[#which-key][WHICH-KEY]]
* IMPORTANT PROGRAMS TO LOAD FIRST * IMPORTANT PROGRAMS TO LOAD FIRST
@ -74,6 +76,15 @@
(evil-collection-init)) (evil-collection-init))
(use-package evil-tutor (use-package evil-tutor
:ensure t) :ensure t)
;; Using RETURN to follow links in Org/Evil
;; Unmap keys in 'evil-maps if not done, (setq org-return-follows-link t) will not work
(with-eval-after-load 'evil-maps
(define-key evil-motion-state-map (kbd "SPC") nil)
(define-key evil-motion-state-map (kbd "RET") nil)
(define-key evil-motion-state-map (kbd "TAB") nil))
;; Setting RETURN key in org-mode to follow links
(setq org-return-follows-link t)
#+end_src #+end_src
** Recent Files ** Recent Files
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -107,7 +118,7 @@
"b r" '(revert-buffer :wk "Reload buffer")) "b r" '(revert-buffer :wk "Reload buffer"))
(kylekrein/leader-keys (kylekrein/leader-keys
"e" '(:ignore t :wk "Eshell/Evaluate") "e" '(:ignore t :wk "Eshell/Evaluate")
"e b" '(eval-buffer :wk "Evaluate elisp in buffer") "e b" '(eval-buffer :wk "Evaluate elisp in buffer")
"e d" '(eval-defun :wk "Evaluate defun containing or after point") "e d" '(eval-defun :wk "Evaluate defun containing or after point")
"e e" '(eval-expression :wk "Evaluate and elisp expression") "e e" '(eval-expression :wk "Evaluate and elisp expression")
@ -127,11 +138,11 @@
"t l" '(display-line-numbers-mode :wk "Toggle line numbers") "t l" '(display-line-numbers-mode :wk "Toggle line numbers")
"t t" '(visual-line-mode :wk "Toggle truncated lines") "t t" '(visual-line-mode :wk "Toggle truncated lines")
"t v" '(vterm-toggle :wk "Toggle vterm")) "t v" '(vterm-toggle :wk "Toggle vterm"))
(kylekrein/leader-keys (kylekrein/leader-keys
"o" '(:ignore t :wk "Open") "o" '(:ignore t :wk "Open")
"o a" '(org-agenda :wk "Agenda") "o a" '(org-agenda :wk "Agenda")
) )
(kylekrein/leader-keys (kylekrein/leader-keys
"n" '(:ignore t :wk "Notes") "n" '(:ignore t :wk "Notes")
"n r" '(:ignore t :wk "Roam") "n r" '(:ignore t :wk "Roam")
"n r f" '(org-roam-node-find :wk "Find and open") "n r f" '(org-roam-node-find :wk "Find and open")
@ -140,6 +151,12 @@
"n r m" '(org-roam-dailies-map :wk "Dailies") "n r m" '(org-roam-dailies-map :wk "Dailies")
"n r s" '(org-roam-db-sync :wk "Sync Notes DB (After changes on another device)") "n r s" '(org-roam-db-sync :wk "Sync Notes DB (After changes on another device)")
) )
(kylekrein/leader-keys
"d" '(:ignore t :wk "Dired")
"d d" '(dired :wk "Open dired")
"d j" '(dired-jump :wk "Dired jump to current")
"d n" '(neotree-dir :wk "Open directory in neotree")
"d p" '(peep-dired :wk "Peep-dired"))
(kylekrein/leader-keys (kylekrein/leader-keys
"w" '(:ignore t :wk "Windows") "w" '(:ignore t :wk "Windows")
@ -409,6 +426,30 @@ This package implements hiding or abbreviation of the modeline displays (lighter
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package diminish :ensure t) (use-package diminish :ensure t)
#+end_src #+end_src
* DIRED (File manager)
#+begin_src emacs-lisp
(use-package dired-open
:ensure t
:config
(setq dired-open-extensions '(("gif" . "gwenview")
("jpg" . "gwenview")
("png" . "gwenview")
("mkv" . "vlc")
("mp4" . "vlc"))))
(use-package peep-dired
:ensure t
:after dired
:hook (evil-normalize-keymaps . peep-dired-hook)
:config
(evil-define-key 'normal dired-mode-map (kbd "h") 'dired-up-directory)
(evil-define-key 'normal dired-mode-map (kbd "l") 'dired-open-file) ; use dired-find-file instead if not using dired-open package
(evil-define-key 'normal peep-dired-mode-map (kbd "j") 'peep-dired-next-file)
(evil-define-key 'normal peep-dired-mode-map (kbd "k") 'peep-dired-prev-file)
)
;;(add-hook 'peep-dired-hook 'evil-normalize-keymaps)
#+end_src
* FLYCHECK * FLYCHECK
Install luacheck from your Linux distros repositories for flycheck to work correctly with lua files. Install python-pylint for flycheck to work with python files. Haskell works with flycheck as long as haskell-ghc or haskell-stack-ghc is installed. For more information on language support for flycheck, [[https://www.flycheck.org/en/latest/languages.html][read this]]. Install luacheck from your Linux distros repositories for flycheck to work correctly with lua files. Install python-pylint for flycheck to work with python files. Haskell works with flycheck as long as haskell-ghc or haskell-stack-ghc is installed. For more information on language support for flycheck, [[https://www.flycheck.org/en/latest/languages.html][read this]].
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -570,7 +611,8 @@ Org-bullets gives us attractive bullets rather than asterisks.
Org mode source blocks have some really weird and annoying default indentation behavior. I think this has to do with electric-indent-mode, which is turned on by default in Emacs. So let's turn it OFF! Org mode source blocks have some really weird and annoying default indentation behavior. I think this has to do with electric-indent-mode, which is turned on by default in Emacs. So let's turn it OFF!
#+begin_src emacs-lisp #+begin_src emacs-lisp
(electric-indent-mode -1) (electric-indent-mode -1)
(setq org-edit-src-content-indentation 0)
#+end_src #+end_src
** Org Level Headers ** Org Level Headers
@ -959,6 +1001,11 @@ Descriptions for completions
;; Corrects (and improves) org-mode's native fontification. ;; Corrects (and improves) org-mode's native fontification.
(doom-themes-org-config)) (doom-themes-org-config))
#+end_src #+end_src
* Transparency
With Emacs version 29, true transparency has been added.
#+begin_src emacs-lisp
(add-to-list 'default-frame-alist '(alpha-background . 90)) ; For all new frames henceforth
#+end_src
* WHICH-KEY * WHICH-KEY
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package which-key (use-package which-key
@ -976,6 +1023,6 @@ Descriptions for completions
which-key-side-window-max-height 0.25 which-key-side-window-max-height 0.25
which-key-idle-delay 0.8 which-key-idle-delay 0.8
which-key-max-description-length 25 which-key-max-description-length 25
which-key-allow-imprecise-window-fit t which-key-allow-imprecise-window-fit nil
which-key-separator " → " )) which-key-separator " → " ))
#+end_src #+end_src