Commit f6311f91a5ea

Vincent Demeester <vincent@sbr.pm>
2017-09-12 22:07:33
Do not try to change fonts on android
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 607f96c
.emacs.d/config/visual-config.el
@@ -1,7 +1,6 @@
 
 (use-package dashboard
   :ensure t
-  :diminish dashboard-mode
   :config
   (setq dashboard-banner-logo-title "Welcome to Emacs, Vincent !"
         dashboard-startup-banner (expand-file-name "images/okumura_rin_4_by_naruto_lover16-d4ktg50.png" user-emacs-directory))
@@ -46,9 +45,11 @@
         ((x-list-fonts "Consolas") "Consolas-14"))
   "Fixed width font based on what is install")
 
-(set-frame-font vde/fixed-font-family)
-(set-face-attribute 'default nil :font vde/fixed-font-family :height 110)
-(set-face-font 'default vde/fixed-font-family)
+;; FIXME(vdemeester) extract the condition out ๐Ÿ‘ผ
+(unless (eq system-configuration "aarch64-unknown-linux-android")
+  (set-frame-font vde/fixed-font-family)
+  (set-face-attribute 'default nil :font vde/fixed-font-family :height 110)
+  (set-face-font 'default vde/fixed-font-family))
 
 (line-number-mode t)
 (column-number-mode t)
.emacs.d/config/visual-config.elc
Binary file
.emacs.d/config/visual-config.org
@@ -103,9 +103,11 @@
           ((x-list-fonts "Consolas") "Consolas-14"))
     "Fixed width font based on what is install")
 
-  (set-frame-font vde/fixed-font-family)
-  (set-face-attribute 'default nil :font vde/fixed-font-family :height 110)
-  (set-face-font 'default vde/fixed-font-family)
+  ;; FIXME(vdemeester) extract the condition out ๐Ÿ‘ผ
+  (unless (eq system-configuration "aarch64-unknown-linux-android")
+    (set-frame-font vde/fixed-font-family)
+    (set-face-attribute 'default nil :font vde/fixed-font-family :height 110)
+    (set-face-font 'default vde/fixed-font-family))
 #+END_SRC
 
 Let's write some emojis to see how they look ๐Ÿ™† ๐Ÿ˜† ๐Ÿ˜ โ™จ โ›… ๐Ÿšฒ.