Guix and emacs config cleanup
This commit is contained in:
parent
189ede1949
commit
8dc066a796
6 changed files with 21 additions and 14 deletions
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
(advice-add 'risky-local-variable-p :override #'ignore)
|
(advice-add 'risky-local-variable-p :override #'ignore)
|
||||||
|
|
||||||
;; Increase buffers and whatnot for lsp-mode
|
;; Increase various buffers for lsp-mode
|
||||||
(setq read-process-output-max (* 1024 1024)) ;; 1mb
|
(setq read-process-output-max (* 1024 1024)) ;; 1mb
|
||||||
(setq gc-cons-threshold 100000000)
|
(setq gc-cons-threshold 100000000)
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@
|
||||||
(setq which-key-idle-delay 0.3))
|
(setq which-key-idle-delay 0.3))
|
||||||
|
|
||||||
(use-package markdown-mode
|
(use-package markdown-mode
|
||||||
:ensure t
|
|
||||||
:mode ("README\\.md\\'" . gfm-mode)
|
:mode ("README\\.md\\'" . gfm-mode)
|
||||||
:init
|
:init
|
||||||
(setq markdown-asymmetric-header nil)
|
(setq markdown-asymmetric-header nil)
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
(use-package company
|
(use-package company
|
||||||
:after lsp-mode
|
:after lsp-mode
|
||||||
:hook (lsp-mode . company-mode)
|
:hook (lsp-mode company)
|
||||||
:bind (:map company-active-map
|
:bind (:map company-active-map
|
||||||
("<tab>" . company-complete-selection))
|
("<tab>" . company-complete-selection))
|
||||||
(:map lsp-mode-map
|
(:map lsp-mode-map
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
(company-idle-delay 0.0))
|
(company-idle-delay 0.0))
|
||||||
|
|
||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:hook (lsp-mode . lsp-ui-mode)
|
:hook (lsp-mode lsp-ui)
|
||||||
:custom
|
:custom
|
||||||
(lsp-ui-doc-position 'bottom)
|
(lsp-ui-doc-position 'bottom)
|
||||||
:commands lsp-ui-mode)
|
:commands lsp-ui-mode)
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:hook (python-mode . lsp-deferred)
|
:hook (python-mode . lsp-deferred)
|
||||||
:custom
|
:custom
|
||||||
;; NOTE: Set these if Python 3 is called "python3" on your system!
|
;; Look for python3 rather than python
|
||||||
(python-shell-interpreter "python3")
|
(python-shell-interpreter "python3")
|
||||||
(dap-python-executable "python3")
|
(dap-python-executable "python3")
|
||||||
(dap-python-debugger 'debugpy)
|
(dap-python-debugger 'debugpy)
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
(require 'package)
|
(require 'package)
|
||||||
|
|
||||||
|
;;;; Code:
|
||||||
|
|
||||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
||||||
("org" . "https://orgmode.org/elpa/")
|
("org" . "https://orgmode.org/elpa/")
|
||||||
("elpa" . "https://elpa.gnu.org/packages/")))
|
("elpa" . "https://elpa.gnu.org/packages/")))
|
||||||
|
@ -16,3 +18,4 @@
|
||||||
(setq use-package-always-ensure t)
|
(setq use-package-always-ensure t)
|
||||||
|
|
||||||
(provide 'jg-package)
|
(provide 'jg-package)
|
||||||
|
;;; jg-package.el ends here
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
;; This is an operating system configuration template
|
;; This is an operating system configuration template
|
||||||
;; for a "desktop" setup with GNOME and Xfce where the
|
;; for a "desktop" setup with Sway and Wayland.
|
||||||
;; root partition is encrypted with LUKS, and a swap file.
|
|
||||||
|
|
||||||
(use-modules (gnu) (gnu packages)
|
(use-modules (gnu) (gnu packages)
|
||||||
(gnu system nss)
|
(gnu system nss)
|
||||||
|
@ -50,7 +49,7 @@
|
||||||
|
|
||||||
;; Specify a swap file for the system, which resides on the
|
;; Specify a swap file for the system, which resides on the
|
||||||
;; root file system.
|
;; root file system.
|
||||||
(swap-devices '("/dev/nvme0n1p2"))
|
;; (swap-devices '("/dev/nvme0n1p2"))
|
||||||
|
|
||||||
;; Create user `bob' with `alice' as its initial password.
|
;; Create user `bob' with `alice' as its initial password.
|
||||||
(users (append
|
(users (append
|
||||||
|
|
|
@ -6,14 +6,20 @@
|
||||||
#:use-module (gnu home services)
|
#:use-module (gnu home services)
|
||||||
#:use-module (gnu home services shells)
|
#:use-module (gnu home services shells)
|
||||||
#:use-module (gnu services)
|
#:use-module (gnu services)
|
||||||
#:use-module (gnu system shadow))
|
#:use-module (gnu system shadow)
|
||||||
|
#:use-module (gnu packages))
|
||||||
|
|
||||||
(define home-config
|
(define home-config
|
||||||
(home-environment
|
(home-environment
|
||||||
|
(packages (specifications->packages
|
||||||
|
(list "git"
|
||||||
|
"emacs-no-x-toolkit"
|
||||||
|
"foot")))
|
||||||
|
|
||||||
(services
|
(services
|
||||||
(list
|
(list
|
||||||
;; Uncomment the shell you wish to use for your user:
|
;; Uncomment the shell you wish to use for your user:
|
||||||
;(service home-bash-service-type)
|
(service home-bash-service-type)
|
||||||
;(service home-fish-service-type)
|
;(service home-fish-service-type)
|
||||||
;(service home-zsh-service-type)
|
;(service home-zsh-service-type)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue