Adapt to better work on other systems.

This commit is contained in:
2025-12-19 10:32:01 +09:00
parent 9cd88d6be9
commit 26913bece6
4 changed files with 13 additions and 5 deletions

View File

@@ -17,7 +17,8 @@
(which-key-mode)) (which-key-mode))
;; Pixel perfect scrolling ;; Pixel perfect scrolling
(pixel-scroll-precision-mode) (unless (version< emacs-version "29.0")
(pixel-scroll-precision-mode))
;; Display time ;; Display time
(display-time-mode) (display-time-mode)
@@ -116,6 +117,8 @@
;; stopped loading it automatically. So, to remedy that, we load it if it was ;; stopped loading it automatically. So, to remedy that, we load it if it was
;; not already loaded. ;; not already loaded.
(unless (memq 'vterm features) (unless (memq 'vterm features)
(load "vterm" nil t)) (load "vterm" t)
(unless (memq 'vterm features)
(message "Failed to load vterm. It is probably not installed.")))
;;; 05-basic.el ends here ;;; 05-basic.el ends here

View File

@@ -48,7 +48,9 @@
(setq org-roam-directory (file-truename "~/data2/Notes")) (setq org-roam-directory (file-truename "~/data2/Notes"))
;; This tells org-roam to sync notes with its index in the background. ;; This tells org-roam to sync notes with its index in the background.
(if (file-directory-p org-roam-directory)
(org-roam-db-autosync-mode) (org-roam-db-autosync-mode)
(message "Org Roam directory (%s) does not exist. Autosync disabled." org-roam-directory))
(setq global-roam-map (make-sparse-keymap "Roam Keys")) (setq global-roam-map (make-sparse-keymap "Roam Keys"))
(global-set-key "\C-cr" global-roam-map) (global-set-key "\C-cr" global-roam-map)

View File

@@ -110,10 +110,10 @@
;; Lispy provides structural editing to lisp modes. ;; Lispy provides structural editing to lisp modes.
(use-package lispy (use-package lispy
:ensure t
:defer t) :defer t)
(add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1))) (if (memq 'lispy-autoloads features)
(add-hook 'emacs-lisp-mode-hook (lambda () (lispy-mode 1))))
;; This package adds indent bars. Currently only configured for rust and python. ;; This package adds indent bars. Currently only configured for rust and python.
(use-package indent-bars (use-package indent-bars

View File

@@ -19,6 +19,9 @@
(eval-print-last-sexp))) (eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage)) (load bootstrap-file nil 'nomessage))
(unless (memq 'use-package-autoloads features)
(straight-use-package 'use-package))
;; The compile-angel package automatically byte-compiles and ;; The compile-angel package automatically byte-compiles and
;; native-compiles Emacs Lisp libraries. It should be loaded before ;; native-compiles Emacs Lisp libraries. It should be loaded before
;; any other package. ;; any other package.