Emacs ã§ä¸çªé£ããã®ã¯ãã©ã³ãã®è¨å®ã§ããç¹ã« Mac ã§ã¯å°çã®ããã«é£ããã§ããã¨ãããã§ãEmacs 24.3 ã¨æ¥ã Emacs 24.4 ã§ãã¾ããã©ã³ãã使ãããã®è¨å®ãå ¬éãã¦ããã¾ãã
ãªããMac ã§ã¯ç´ ã® Emacs ã使ã£ã¦ã¯ããã¾ãããEmacs Mac port ã使ãã¾ããããããããå½ã¦ãã®ã¯é¢åãªã®ã§ãæ©ã github ãªããã§å ¬éãããã¨ããã§ããã
ã¡ãªã¿ã«ãç´ ã® Emacs ã Dock ããèµ·åãã㨠PATH ãå¼ãç¶ããªãã®ã§ãã¯ã¾ãã¾ããEmacs Mac port ãªã PATH ãå¼ãç¶ãã§ããã¾ãã
ãã©ã³ãã®è¨å®
以ä¸ãã好ã¿ã«åããã¦å¤ã㦠.emacs ãªã©ã«å ¥ãã¦ä¸ããã
;; 以ä¸ã¯ãã¬ã¼ã ã®è¨å® (defvar my-frame-parameters '((height . 40) (width . 80) (top . 0) (left . 0) (foreground-color . "white") (background-color . "black") (cursor-color . "white") (mouse-color . "white") (tool-bar-lines . nil))) (when (memq window-system '(x mac ns)) (setq frame-title-format '(multiple-frames "%b" ("" invocation-name))) (setq default-frame-alist my-frame-parameters)) ;; 以ä¸ã Mac ç¨ã®ãã©ã³ãè¨å® (when (memq window-system '(mac ns)) (global-set-key [s-mouse-1] 'browse-url-at-mouse) (let* ((size 14) (jpfont "Hiragino Maru Gothic ProN") (asciifont "Monaco") (h (* size 10))) (set-face-attribute 'default nil :family asciifont :height h) (set-fontset-font t 'katakana-jisx0201 jpfont) (set-fontset-font t 'japanese-jisx0208 jpfont) (set-fontset-font t 'japanese-jisx0212 jpfont) (set-fontset-font t 'japanese-jisx0213-1 jpfont) (set-fontset-font t 'japanese-jisx0213-2 jpfont) (set-fontset-font t '(#x0080 . #x024F) asciifont)) (setq face-font-rescale-alist '(("^-apple-hiragino.*" . 1.2) (".*-Hiragino Maru Gothic ProN-.*" . 1.2) (".*osaka-bold.*" . 1.2) (".*osaka-medium.*" . 1.2) (".*courier-bold-.*-mac-roman" . 1.0) (".*monaco cy-bold-.*-mac-cyrillic" . 0.9) (".*monaco-bold-.*-mac-roman" . 0.9) ("-cdac$" . 1.3))) ;; C-x 5 2 ã§æ°ãããã¬ã¼ã ãä½ã£ãã¨ãã«åããã©ã³ãã使ã (setq frame-inherited-parameters '(font tool-bar-lines))) ;; 以ä¸ã®è¨å®ã¯ã好ã¿ã§ (setq resize-mini-windows nil) (setq mouse-drag-copy-region t)