(if nixos
    (progn
      (set-face-attribute 'default nil :family "Inconsolata")
      (set-face-attribute 'default nil :height 130))
  (set-face-attribute 'default nil :family "Input Mono")
  (set-face-attribute 'default nil :height 130))

(defun mjhoy/proportional ()
  "Use a proportional font"
  (interactive)
  (setq buffer-face-mode-face '(:family "Input Sans" :height 130))
  (setq line-spacing 0.3)
  (buffer-face-mode))

(defun mjhoy/mono ()
  "Use a monospace font"
  (interactive)
  (setq buffer-face-mode-face '(:family "Input Mono" :height 130))
  (setq line-spacing 0.2)
  (buffer-face-mode))

;; input is a little tight; increase the line-spacing
(setq-default line-spacing 0.2)
(menu-bar-mode 0)
(when (string-equal system-type "darwin")
  (when (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
  (when (fboundp 'tool-bar-mode) (tool-bar-mode -1))
  (when (fboundp 'menu-bar-mode) (menu-bar-mode -1)))

;; right option key use as mac normal option (so i can type é easily)
(setq ns-right-alternate-modifier 'none)

(setq scroll-conservatively 10000)
(show-paren-mode t)
(setq ring-bell-function 'ignore)

(provide 'init-ui)

(set-face-attribute 'default nil :family "Input Mono")
(set-face-attribute 'default nil :height 130)

(defun mjhoy/proportional ()
  "Use a proportional font"
  (interactive)
  (setq buffer-face-mode-face '(:family "Input Sans" :height 130))
  (setq line-spacing 0.3)
  (buffer-face-mode))

(defun mjhoy/mono ()
  "Use a monospace font"
  (interactive)
  (setq buffer-face-mode-face '(:family "Input Mono" :height 130))
  (setq line-spacing 0.2)
  (buffer-face-mode))

;; input is a little tight; increase the line-spacing
(setq-default line-spacing 0.2)
(menu-bar-mode 0)
(when (string-equal system-type "darwin")
  (when (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
  (when (fboundp 'tool-bar-mode) (tool-bar-mode -1))
  (when (fboundp 'menu-bar-mode) (menu-bar-mode -1)))

;; right option key use as mac normal option (so i can type é easily)
(setq ns-right-alternate-modifier 'none)

(setq scroll-conservatively 10000)
(show-paren-mode t)
(setq ring-bell-function 'ignore)

(provide 'init-ui)

Revert "emacs: use inconsolata on nix"
Revert "emacs: use inconsolata on nix"

This reverts commit 2c912efc70f7f5ddd78cd9bc9658ca170206b73a.

I've figured out how to install input on nix now.

mjhoy/dotfiles,mjhoy/dotfiles,mjhoy/dotfiles,mjhoy/dotfiles,mjhoy/dotfiles