libkookie: various emacs module cleanups

main
Katharina Fey 2 years ago
parent 7582634d30
commit bb400872c9
Signed by: kookie
GPG Key ID: F972AEEA2887D547
  1. 13
      infra/libkookie/overlays/kookie/emacs/base/default.el
  2. 1
      infra/libkookie/overlays/kookie/emacs/base/default.nix
  3. 3
      infra/libkookie/overlays/kookie/emacs/default.nix
  4. 9
      infra/libkookie/overlays/kookie/emacs/org/default.el
  5. 8
      infra/libkookie/overlays/kookie/emacs/org/default.nix
  6. 3
      infra/libkookie/overlays/kookie/emacs/rust/default.nix

@ -26,7 +26,6 @@
(defvaralias 'cperl-indent-level 'tab-width) (defvaralias 'cperl-indent-level 'tab-width)
;;; Hide startup splash ;;; Hide startup splash
;; FIXME: this doesn't currently work...
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)
(setq inhibit-splash-screen t) (setq inhibit-splash-screen t)
(setq initial-scratch-message nil) (setq initial-scratch-message nil)
@ -64,13 +63,16 @@
(add-hook 'find-file-hook (lambda () (ruler-mode 1))) (add-hook 'find-file-hook (lambda () (ruler-mode 1)))
;;; Setup mitosis buffer splitting ;;; Setup mitosis buffer splitting
(setq emacs-anchor default-directory) (defalias 'mitosis 'make-frame)
(defun mitosis () (interactive) (make-frame))
;;; Distraction free mode and minimap ;;; Distraction free mode and minimap
(require 'sublimity) (require 'sublimity)
(require 'sublimity-attractive) (require 'sublimity-attractive)
;;; Use the modeline from spacemacs
(require 'spaceline-config)
(spaceline-spacemacs-theme)
;;; OpenSCAD mode ;;; OpenSCAD mode
(add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode)) (add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode))
@ -139,4 +141,7 @@
(global-set-key (kbd "C-<prior>") 'previous-user-buffer) (global-set-key (kbd "C-<prior>") 'previous-user-buffer)
(global-set-key (kbd "M-s M-s") 'save-buffer) (global-set-key (kbd "M-s M-s") 'save-buffer)
(global-set-key (kbd "C-t") 'smex) (global-set-key (kbd "C-t") 'smex)
(global-set-key (kbd "C-H-<left>") 'centaur-tabs-backward-tab)
(global-set-key (kbd "C-H-<right>") 'centaur-tabs-forward-tab)
(global-set-key (kbd "C-H-<up>") 'next-window-any-frame)
(global-set-key (kbd "C-H-<down>") 'previous-window-any-frame)

@ -6,4 +6,5 @@ with epkgs;
direnv direnv
smex smex
sublimity sublimity
spaceline
]) ])

@ -34,7 +34,7 @@ pkgs.emacsWithPackages (epkgs:
protobuf-mode protobuf-mode
raku-mode raku-mode
scad-mode scad-mode
# Utility moduse # Utility moduse
fzf fzf
magit magit
@ -44,4 +44,3 @@ pkgs.emacsWithPackages (epkgs:
vterm vterm
which-key which-key
]) ])

@ -8,11 +8,18 @@
;; LIBKOOKIE is licensed under the GPL-3.0 (or later) -- see LICENSE ;; LIBKOOKIE is licensed under the GPL-3.0 (or later) -- see LICENSE
(provide 'kookie-org) (provide 'kookie-org)
;;; Setup org-roam basics
(require 'org) (require 'org)
(require 'ox-reveal) (require 'ox-reveal)
(load-library "ox-reveal") (load-library "ox-reveal")
;;; Setup org-roam mode
(setq org-roam-v2-ack t)
(require 'org-roam)
(require 'org-roam-ui)
;;; Set .org as my file ending of choice ;;; Set .org as my file ending of choice
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))

@ -1,4 +1,10 @@
{ buildModule, epkgs, pkgs }: { buildModule, epkgs, pkgs }:
with epkgs; with pkgs; with epkgs; with pkgs;
(buildModule "kookie-org" ./. [ org ox-reveal htmlize ]) (buildModule "kookie-org" ./. [
org
org-roam
org-roam-ui
ox-reveal
htmlize
])

@ -7,9 +7,6 @@ with epkgs; with pkgs;
# lsp integration # lsp integration
lsp-mode lsp-ui company lsp-mode lsp-ui company
# ??? Not sure why these are required
dash-functional spinner
# projectile mode # projectile mode
projectile projectile

Loading…
Cancel
Save