Merge branch 'master' of github.com:SqrtMinusOne/dotfiles

This commit is contained in:
Pavel Korytov 2024-06-17 01:45:55 +03:00
commit 23496bfacc
2 changed files with 22 additions and 6 deletions

View file

@ -542,9 +542,11 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(interactive) (interactive)
(if (derived-mode-p 'exwm-mode) (if (derived-mode-p 'exwm-mode)
(my/run-in-background "xkb-switch -n") (my/run-in-background "xkb-switch -n")
(if (equal (string-trim (if (or
(shell-command-to-string "xkb-switch -p")) (not (executable-find "xkb-switch"))
"us") (equal (string-trim
(shell-command-to-string "xkb-switch -p"))
"us"))
(toggle-input-method) (toggle-input-method)
(my/run-in-background "xkb-switch -s us")))) (my/run-in-background "xkb-switch -s us"))))
@ -7219,6 +7221,10 @@ ENTRY is an instance of `elfeed-entry'."
:straight t :straight t
:defer t) :defer t)
(unless (display-graphic-p)
(defun image-transforms-p () nil)
(setq image-types '(svg png gif tiff jpeg xpm xbm pbm)))
(defun my/mastodon-configure () (defun my/mastodon-configure ()
(display-line-numbers-mode -1)) (display-line-numbers-mode -1))

View file

@ -978,9 +978,11 @@ I also want to call =xkb-switch= in EXWM buffers with the same keybindig.
(interactive) (interactive)
(if (derived-mode-p 'exwm-mode) (if (derived-mode-p 'exwm-mode)
(my/run-in-background "xkb-switch -n") (my/run-in-background "xkb-switch -n")
(if (equal (string-trim (if (or
(shell-command-to-string "xkb-switch -p")) (not (executable-find "xkb-switch"))
"us") (equal (string-trim
(shell-command-to-string "xkb-switch -p"))
"us"))
(toggle-input-method) (toggle-input-method)
(my/run-in-background "xkb-switch -s us")))) (my/run-in-background "xkb-switch -s us"))))
#+end_src #+end_src
@ -10022,6 +10024,14 @@ The default UI is rather rough, but Nicolas Rougier's [[https://github.com/rougi
:straight t :straight t
:defer t) :defer t)
#+end_src #+end_src
Compatibility with termux.
#+begin_src emacs-lisp
(unless (display-graphic-p)
(defun image-transforms-p () nil)
(setq image-types '(svg png gif tiff jpeg xpm xbm pbm)))
#+end_src
**** UI and keymaps **** UI and keymaps
=display-line-numbers-mode= screws the UI for some reason. =display-line-numbers-mode= screws the UI for some reason.