Emacs : pdf tool setting

This commit is contained in:
2021-10-11 18:47:19 +09:00
parent cd7eda4548
commit 4b318c2348
3 changed files with 41 additions and 21 deletions

View File

@ -997,6 +997,16 @@ https://emacs.stackexchange.com/a/30691
** Org Noter
#+begin_src emacs-lisp
(use-package pdf-tools
:straight t
:config
(pdf-tools-install)
(setq-default pdf-view-display-size 'fit-width)
(define-key pdf-view-mode-map (kbd "C-s") 'isearch-forward)
:custom
(pdf-annot-activate-created-annotations t "automatically annotate highlights"))
(use-package org-pdfview
:straight t)
(use-package org-noter)
#+end_src
* Magit
@ -1368,21 +1378,21 @@ using =svlangserver=
* ETC
** Youtube
#+begin_src emacs-lisp
;;(use-package ytel
;;:straight t
;;:config
;;(setq ytel-invidious-api-url "https://invidious.snopyta.org")
;;)
;;(defun ytel-watch ()
;;"Stream video at point in mpv."
;;(interactive)
;;(let* ((video (ytel-get-current-video))
;;(id (ytel-video-id video)))
;;(start-process "ytel mpv" nil
;;"mpv"
;;(concat "https://www.youtube.com/watch?v=" id))
;;"--ytdl-format=bestvideo[height<=?720]+bestaudio/best")
;;(message "Starting streaming..."))
(use-package ytel
:straight t
:config
(setq ytel-invidious-api-url "https://invidious.snopyta.org")
)
(defun ytel-watch ()
"Stream video at point in mpv."
(interactive)
(let* ((video (ytel-get-current-video))
(id (ytel-video-id video)))
(start-process "ytel mpv" nil
"mpv"
(concat "https://www.youtube.com/watch?v=" id))
"--ytdl-format=bestvideo[height<=?720]+bestaudio/best")
(message "Starting streaming..."))
#+end_src
** Python

View File

@ -8,7 +8,7 @@
# Enable screen locking on suspend
#xss-lock -- slock &
# Fire it up for WSL
#VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
#export DISPLAY=$VETHER_IP:10.0
VETHER_IP=$(/bin/grep nameserver /etc/resolv.conf 2> /dev/null | /bin/tr -s ' ' | /bin/cut -d' ' -f2)
export DISPLAY=$VETHER_IP:10.0
picom -b --config $HOME/.xmonad/scripts/picom.conf &
exec dbus-launch --exit-with-session emacs -mm --debug-init -l ~/.emacs.d/desktop.el

View File

@ -53,3 +53,13 @@ pip install matplotlib numpy pandas tabulate
# verilog lsp
paru -S verilator --noconfirm
npm install -g @imc-trading/svlangserver
##################################################
# EXWM
##################################################
paru -S picom --noconfirm
paru -S xorg-xrandr feh cronie --noconfirm
git clone https://github.com/adi1090x/dynamic-wallpaper.git
cd dynamic-wallpaper
./install.sh