mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress the warnings introduced in Emacs 31 requiring all elisp files to have a `lexical-binding` comment. This retains the default behavior of dynamic binding when no `lexical-binding` comment is present. With it set to `t` across the board, various things break, and fixing those is a task for another day.
36 lines
1.1 KiB
EmacsLisp
36 lines
1.1 KiB
EmacsLisp
;;; siren-core-linux.el --- jimeh's Emacs Siren: Linux specific settings. -*- lexical-binding: nil; -*-
|
|
|
|
;;; Commentary:
|
|
|
|
;; Linux specific settings and tweaks for Siren.
|
|
|
|
;;; Code:
|
|
|
|
;; Set default font
|
|
(if window-system
|
|
;; Set default font based on priority list
|
|
(let* ((families '("Menlo Nerd Font Mono"
|
|
"Menlo Nerd Font"
|
|
"Menlo Nerd Font Propo"
|
|
"Menlo for Powerline"
|
|
"Menlo"
|
|
"Monaco Nerd Font Mono"
|
|
"Monaco for Powerline"
|
|
"Monaco"))
|
|
(available (font-family-list))
|
|
(family (catch 'found
|
|
(dolist (f families)
|
|
(if (member f available)
|
|
(throw 'found f))))))
|
|
(set-face-attribute 'default nil :family family :height 90)))
|
|
|
|
;; Keybindinds
|
|
(siren-general-define-key
|
|
"s-<return>" 'toggle-frame-fullscreen)
|
|
|
|
;; Set initial frame to fullscreen when Emacs starts.
|
|
(add-to-list 'initial-frame-alist '(fullscreen . maximized))
|
|
|
|
(provide 'siren-core-linux)
|
|
;;; siren-core-linux.el ends here
|