making emacs laptop aware and setting fonts for laptop

This commit is contained in:
Chris Cochrun 2021-02-16 10:48:41 -06:00
parent 17176c4183
commit a71c363ee3
2 changed files with 45 additions and 59 deletions

38
init.el
View file

@ -1,17 +1,19 @@
;;; init.el -*- lexical-binding: t; -*-
(setq inhibit-startup-message t)
(setq inhibit-startup-message t)
(scroll-bar-mode -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(set-fringe-mode 10)
(scroll-bar-mode -1)
(tool-bar-mode -1)
(tooltip-mode -1)
(set-fringe-mode 10)
(menu-bar-mode -1)
(blink-cursor-mode -1)
(column-number-mode +1)
(menu-bar-mode -1)
(blink-cursor-mode -1)
(column-number-mode +1)
(set-face-attribute 'default nil :font "VictorMono Nerd Font" :height 120)
(setq display-line-numbers-type 'relative)
(if (string-equal (system-name) "chris-linuxlaptop")
(set-face-attribute 'default nil :font "VictorMono Nerd Font" :height 240)
(set-face-attribute 'default nil :font "VictorMono Nerd Font" :height 120))
(setq display-line-numbers-type 'relative)
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
@ -134,19 +136,3 @@
(org-babel-tangle))))
(add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'chris/org-babel-tangle-config))))
(use-package selectrum
:init
(selectrum-mode +1)
:config
(general-define-key
:keymaps 'selectrum-minibuffer-map
"C-j" 'selectrum-next-candidate
"C-k" 'selectrum-previous-candidate
"C-S-j" 'selectrum-goto-end
"C-S-k" 'selectrum-goto-beginning
"TAB" 'selectrum-insert-current-candidate))
(use-package selectrum-prescient
:init
(selectrum-prescient-mode +1))