]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Silence some warnings on Android
authorEshel Yaron <me@eshelyaron.com>
Mon, 9 Oct 2023 10:46:58 +0000 (12:46 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 9 Oct 2023 10:46:58 +0000 (12:46 +0200)
.emacs.d/init.el

index 0322d88c89a18448171ad380910a206d1a659398..8c1bdb4eb018fe1472a8713620f2d13c3646f182 100644 (file)
 
 ;;; 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