;;; Character sets


;;; Changing font sizes

(require-package 'default-text-scale)
(global-set-key (kbd "C-M-=") 'default-text-scale-increase)
(global-set-key (kbd "C-M--") 'default-text-scale-decrease)

(when (eq 'ns window-system)
  (set-fontset-font
   t 'symbol
   (font-spec :family "Apple Color Emoji") nil 'prepend))


(defun sanityinc/maybe-adjust-visual-fill-column ()
  "Readjust visual fill column when the global font size is modified.
This is helpful for writeroom-mode, in particular."
  ;; TODO: submit as patch
  (if visual-fill-column-mode
      (add-hook 'after-setting-font-hook 'visual-fill-column--adjust-window nil t)
    (remove-hook 'after-setting-font-hook 'visual-fill-column--adjust-window t)))

(add-hook 'visual-fill-column-mode-hook
          'sanityinc/maybe-adjust-visual-fill-column)



(provide 'init-fonts)

;;; Character sets


;;; Changing font sizes

(require-package 'default-text-scale)
(global-set-key (kbd "C-M-=") 'default-text-scale-increase)
(global-set-key (kbd "C-M--") 'default-text-scale-decrease)


(defun sanityinc/maybe-adjust-visual-fill-column ()
  "Readjust visual fill column when the global font size is modified.
This is helpful for writeroom-mode, in particular."
  ;; TODO: submit as patch
  (if visual-fill-column-mode
      (add-hook 'after-setting-font-hook 'visual-fill-column--adjust-window nil t)
    (remove-hook 'after-setting-font-hook 'visual-fill-column--adjust-window t)))

(add-hook 'visual-fill-column-mode-hook
          'sanityinc/maybe-adjust-visual-fill-column)



(provide 'init-fonts)

Remove non-working OSX color emoji support code
Remove non-working OSX color emoji support code

http://emacs.1067599.n5.nabble.com/Emoji-on-Mac-OS-X-td401600.html

jhpx/emacs.d,krzysz00/emacs.d,svenyurgensson/emacs.d,Shanicky/emacs.d,me020523/emacs.d,emuio/emacs.d,dcorking/emacs.d,roxolan/emacs.d,mmqmzk/emacs.d,fengxl/emacs.d,kongfy/emacs.d,zenith-john/emacs.d,blueabysm/emacs.d,gsmlg/emacs.d,lust4life/emacs.d,Enzo-Liu/emacs.d,benkha/emacs.d,blueseason/emacs.d,sgarciac/emacs.d,kindoblue/emacs.d,wegatron/emacs.d,baohaojun/emacs.d,cjqw/emacs.d,braveoyster/emacs.d,Werewolflsp/emacs.d,purcell/emacs.d,cyjia/emacs.d,qianwan/emacs.d,arthurl/emacs.d