From: Eshel Yaron Date: Mon, 9 Oct 2023 10:46:58 +0000 (+0200) Subject: Silence some warnings on Android X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0d55245e4a1940da27b5af6777b7114e3bb6d1e9;p=dotfiles.git Silence some warnings on Android --- diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 0322d88..8c1bdb4 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -32,33 +32,34 @@ ;;; Check for external programs -(dolist (program '("autoconf" - "automake" - "aws" - "bash" - "cmake" - "gcc" - "git" - "gpg" - "go" - "gopls" - "gtar" - "convert" - "ispell" - "jq" - "mutool" - "ninja" - "psql" - "rg" - "stow" - "makeinfo" - "tree-sitter" - "pandoc" - "mpv")) - (unless (executable-find program) - (display-warning 'programming - (format "Missing external program \"%s\"" program) - :error))) +(unless (eq system-type 'android) + (dolist (program '("autoconf" + "automake" + "aws" + "bash" + "cmake" + "gcc" + "git" + "gpg" + "go" + "gopls" + "gtar" + "convert" + "ispell" + "jq" + "mutool" + "ninja" + "psql" + "rg" + "stow" + "makeinfo" + "tree-sitter" + "pandoc" + "mpv")) + (unless (executable-find program) + (display-warning 'programming + (format "Missing external program \"%s\"" program) + :error)))) ;;; Set up Elpaca @@ -875,10 +876,9 @@ Interactively, POINT is point and KILL is the prefix argument." )) (add-hook 'prog-mode-hook mode)) -(dolist (mode '(paredit-mode - rainbow-delimiters-mode)) - (add-hook 'lisp-data-mode-hook mode)) - +(add-hook 'lisp-data-mode-hook #'paredit-mode) +(unless (eq system-type 'android) + (add-hook 'lisp-data-mode-hook #'rainbow-delimiters-mode)) ;;; Extend other standard hooks