Disabled pdf tools and vterm on android

This commit is contained in:
Aleksandr Lebedev 2025-02-01 15:56:24 +01:00
parent 12c91c0ec6
commit c24cc21434

View file

@ -444,6 +444,7 @@ The modeline is the bottom status bar that appears in Emacs windows. While you
* PDF Tools
[[https://github.com/vedang/pdf-tools][pdf-tools]] is a replacement of DocView for viewing PDF files inside Emacs. It uses the poppler library, which also means that pdf-tools can by used to modify PDFs. I use to disable display-line-numbers-mode in pdf-view-mode because line numbers crash it.
#+begin_src emacs-lisp
(unless (string-equal system-type "android") ;; fails to compile
(use-package pdf-tools
:ensure t
:defer t
@ -459,7 +460,7 @@ The modeline is the bottom status bar that appears in Emacs windows. While you
(add-hook 'pdf-view-mode-hook #'(lambda () (interactive) (display-line-numbers-mode -1)
(blink-cursor-mode -1)
(doom-modeline-mode -1)))
(doom-modeline-mode -1))))
#+end_src
* RAINBOW DELIMITERS
@ -633,16 +634,18 @@ Eshell is an Emacs 'shell' that is written in Elisp.
Vterm is a terminal emulator within Emacs. The 'shell-file-name' setting sets the shell to be used in M-x shell, M-x term, M-x ansi-term and M-x vterm. By default, the shell is set to 'fish' but could change it to 'bash' or 'zsh' if you prefer.
#+begin_src emacs-lisp
(unless (string-equal system-type "android") ;;Fails to compile
(use-package vterm
:ensure t
;;:config
)
))
#+end_src
** Vterm-Toggle
[[https://github.com/jixiuf/vterm-toggle][vterm-toggle]] toggles between the vterm buffer and whatever buffer you are editing.
#+begin_src emacs-lisp
(unless (string-equal system-type "android")
(use-package vterm-toggle
:ensure t
:after vterm
@ -661,7 +664,7 @@ Vterm is a terminal emulator within Emacs. The 'shell-file-name' setting sets t
;;(direction . bottom)
;;(dedicated . t) ;dedicated is supported in emacs27
(reusable-frames . visible)
(window-height . 0.3))))
(window-height . 0.3)))))
#+end_src
* SUDO EDIT