diff --git a/doom/config.el b/doom/config.el index 0358186..b0a8d71 100644 --- a/doom/config.el +++ b/doom/config.el @@ -151,6 +151,48 @@ ;; (defun my/python-mode-hook () ;; (add-to-list 'company-backends 'company-jedi)) +;;; enacs application framework +(use-package eaf + :load-path "~/Downloads/emacs-application-framework" ; Set to "/usr/share/emacs/site-lisp/eaf" if installed from AUR + :custom + ; See https://github.com/emacs-eaf/emacs-application-framework/wiki/Customization + (eaf-browser-continue-where-left-off t) + (eaf-browser-enable-adblocker t) + (browse-url-browser-function 'eaf-open-browser) + :config + (defalias 'browse-web #'eaf-open-browser)) + + +(require 'eaf-system-monitor) +(require 'eaf-pdf-viewer) +(require 'eaf-terminal) +(require 'eaf-music-player) +(require 'eaf-browser) +(require 'eaf-jupyter) +(require 'eaf-file-browser) +(require 'eaf-markdown-previewer) +(require 'eaf-image-viewer) +(require 'eaf-file-manager) +(require 'eaf-airshare) +(require 'eaf-org-previewer) +(require 'eaf-file-sender) +(require 'eaf-video-player) + +(require 'eaf-evil) + + +(define-key key-translation-map (kbd "SPC") + (lambda (prompt) + (if (derived-mode-p 'eaf-mode) + (pcase eaf--buffer-app-name + ("browser" (if (string= (eaf-call-sync "call_function" eaf--buffer-id "is_focus") "True") + (kbd "SPC") + (kbd eaf-evil-leader-key))) + ("pdf-viewer" (kbd eaf-evil-leader-key)) + ("image-viewer" (kbd eaf-evil-leader-key)) + (_ (kbd "SPC"))) + (kbd "SPC")))) + ;;; gif screencast @@ -201,6 +243,12 @@ (setq company-quickhelp-delay 0.5) (setq lsp-jedi-python-library-directories '(/usr .env/lib/)) +(setq eaf-terminal-font-size 12) +(setq lsp-treemacs-sync-mode 1) + +(treemacs-icons-dired-mode) +(after! 'treemacs + (define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action)) ;;; KEYBINDINGS @@ -230,3 +278,11 @@ (map! :leader :desc "Restart LSP server" "c R" #'lsp-workspace-restart) + +(map! :leader + :desc "Search web" + "o w" #'eaf-open-browser-with-history) + +(map! :leader + :desc "Open link under cursor in browser" + "o l" #'eaf-open-url-at-point) diff --git a/doom/init.el b/doom/init.el index ce8dc07..c056faf 100644 --- a/doom/init.el +++ b/doom/init.el @@ -96,7 +96,7 @@ lsp ; M-x vscode magit ; a git porcelain for Emacs make ; run make tasks from Emacs - ;;pass ; password manager for nerds + (pass +auth) ; password manager for nerds pdf ; pdf enhancements ;;prodigy ; FIXME managing external services & code builders rgb ; creating color strings diff --git a/doom/packages.el b/doom/packages.el index b6412a6..1e469be 100644 --- a/doom/packages.el +++ b/doom/packages.el @@ -72,3 +72,5 @@ (package! lsp-ui) (package! company-quickhelp) (package! gif-screencast) +(package! helm-pass) +(package! treemacs-icons-dired) diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index b14eb46..60ce66e 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -13,6 +13,7 @@ fi export ZSH="/home/sudacode/.oh-my-zsh" export PATH="$HOME/scripts:$PATH" export PATH="$HOME/Work/scripts:$PATH" +export PATH="$HOME/.bin:$PATH" export PATH="$HOME/projects/Python/get_song/src/:$PATH" export EDITOR=vim export VISUAL=vim diff --git a/picom/picom.conf b/picom/picom.conf index d76ec1d..393cbce 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -121,7 +121,8 @@ fade-out-step = 0.03; # active-opacity = 0.99; active-opacity = 1; -inactive-opacity = 0.98; +# inactive-opacity = 0.98; +inactive-opacity = 1; # Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) # frame-opacity = 1.0 @@ -160,6 +161,7 @@ opacity-rule = [ "99:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'", "99:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'", "99:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:class_g *= 'Emacs'" ] ################################# @@ -440,7 +442,7 @@ wintypes: # ibhagwan -corner-radius = 11; +corner-radius = 7; # corner-radius = 12; # corner-radius = 15; rounded-corners-exclude = [