This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-06
Channels
- # architecture (17)
- # beginners (118)
- # boot (22)
- # cider (9)
- # clara (38)
- # cljs-dev (4)
- # clojure (213)
- # clojure-austin (4)
- # clojure-greece (1)
- # clojure-italy (4)
- # clojure-russia (5)
- # clojure-spec (7)
- # clojure-uk (5)
- # clojurescript (3)
- # cursive (21)
- # datascript (3)
- # datomic (31)
- # duct (12)
- # emacs (9)
- # graphql (5)
- # gsoc (1)
- # hoplon (9)
- # leiningen (2)
- # off-topic (37)
- # om (2)
- # onyx (2)
- # parinfer (5)
- # perun (4)
- # reagent (2)
- # spacemacs (1)
- # specter (25)
Hello all, I have 2 systems on which i have my same spacemacs config What i am trying to achieve is that according to my system's name different font size should be set in my spacemacs and i want to use the same .spacemacs for both my systems I know it can be done using simple if else but i am lacking somewhere and i dont know why. Currently i am achieving this using the below code in my user-init which is very inefficient
(if (string= (system-name) "sam16")
(setq-default dotspacemacs-default-font '("Source Code Pro"
:size 12
:weight normal
:width normal
:powerline-scale 1.1))
(setq-default dotspacemacs-default-font '("Source Code Pro"
:size 14
:weight normal
:width normal
:powerline-scale 1.1)))
I have this code commented too which i made by reading other peoples config in their dotspacemacs/init but i am not able to do it in my dotspacemacs/init hence doing the above in my user-init
default dotspacemacs-default-font '("Source Code Pro"
:size ,(if (string= (system-name) "sam16")
12
14)
:weight normal
:width normal
:powerline-scale 1.1)
All i want to change is the font-size according to the system-name i have tried many things and also searched alot but somewhere my knowledge lacks hence can someone help me out.