(cond ((eq window-system 'w32) (load "~/.emacs.d/init-windows")) ((or (eq window-system 'ns) (eq window-system 'mac)) (load "~/.emacs.d/init-macos")))
ããããã®ã¯ä½ã¨ãªãå«ãªã®ã§
(load (concat "~/.emacs.d/init-" (prin1-to-string window-system))) ;; å®éã«ã¯ãããªé¢¨ã«ãã¦ã ;; (unless (boundp 'user-emacs-directory) ;; (defvar user-emacs-directory (expand-file-name "~/.emacs.d/"))) ;; (load (concat user-emacs-directory (prin1-to-string window-system)))
ã¨æ¸ãæãããwindow-systemã¯æä»çã ãããã
ï¼system-typeã®å ´åãåãããã«ããã°ããã¨æãï¼
window-systemã¯symbolãªã®ã§ã(concat "~/.emacs.d/init-" window-system ".el") ã¨ã¯ã§ããªãã
;; åã¯type-ofã§èª¿ã¹ãããã (type-of window-system) => symbol (eq (type-of window-system) 'symbol) => t (symbolp window-system) => t
ãªã®ã§prin1-to-stringã使ã£ã¦symbolãstringã«å¤æããã°OKã
ï¼prin1ã£ã¦ã©ãããã¤ããã§ä»ããååãªãã ããï¼ï¼
(load (locate-user-emacs-file (prin1-to-string window-system)))ã§ãããã