Adapt to better work on other systems.
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
(which-key-mode))
|
||||
|
||||
;; Pixel perfect scrolling
|
||||
(pixel-scroll-precision-mode)
|
||||
(unless (version< emacs-version "29.0")
|
||||
(pixel-scroll-precision-mode))
|
||||
|
||||
;; Display time
|
||||
(display-time-mode)
|
||||
@@ -116,6 +117,8 @@
|
||||
;; stopped loading it automatically. So, to remedy that, we load it if it was
|
||||
;; not already loaded.
|
||||
(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
|
||||
|
||||
@@ -48,7 +48,9 @@
|
||||
(setq org-roam-directory (file-truename "~/data2/Notes"))
|
||||
|
||||
;; 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)
|
||||
(message "Org Roam directory (%s) does not exist. Autosync disabled." org-roam-directory))
|
||||
|
||||
(setq global-roam-map (make-sparse-keymap "Roam Keys"))
|
||||
(global-set-key "\C-cr" global-roam-map)
|
||||
|
||||
@@ -110,10 +110,10 @@
|
||||
|
||||
;; Lispy provides structural editing to lisp modes.
|
||||
(use-package lispy
|
||||
:ensure 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.
|
||||
(use-package indent-bars
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
(eval-print-last-sexp)))
|
||||
(load bootstrap-file nil 'nomessage))
|
||||
|
||||
(unless (memq 'use-package-autoloads features)
|
||||
(straight-use-package 'use-package))
|
||||
|
||||
;; The compile-angel package automatically byte-compiles and
|
||||
;; native-compiles Emacs Lisp libraries. It should be loaded before
|
||||
;; any other package.
|
||||
|
||||
Reference in New Issue
Block a user