Files
.emacs.d/core/siren-core-linux.el
Jim Myhrberg fe6a4e7ce5 fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings
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.
2025-06-29 12:23:03 +01:00

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