Nixmacs logo, changes to dashboard and moving of windows

This commit is contained in:
Aleksandr Lebedev 2025-07-24 23:35:35 +02:00
parent a42c4ca936
commit 705ee22d35
4 changed files with 4073 additions and 5 deletions

1
.gitignore vendored
View file

@ -9,3 +9,4 @@
!.gitignore !.gitignore
!flake.lock !flake.lock
!emax.svg !emax.svg
!nixmacs.xpm

View file

@ -486,9 +486,8 @@ Emacs Dashboard is an extensible startup screen showing you recent files, bookma
(setq dashboard-set-heading-icons t) (setq dashboard-set-heading-icons t)
(setq dashboard-projects-backend 'project-el) (setq dashboard-projects-backend 'project-el)
(setq dashboard-set-file-icons t) (setq dashboard-set-file-icons t)
(setq dashboard-banner-logo-title "Emacs Is More Than A Text Editor!") (setq dashboard-banner-logo-title "Emacs Is More Than A Text Editor!\nPowered by Nix")
(setq dashboard-startup-banner 'logo) ;; use standard emacs logo as banner ;;(setq dashboard-startup-banner 'logo) ;; use standard emacs logo as banner
;;(setq dashboard-startup-banner "/home/dt/.config/emacs/images/emacs-dash.png") ;; use custom image as banner
(setq dashboard-center-content nil) ;; set to 't' for centered content (setq dashboard-center-content nil) ;; set to 't' for centered content
(setq dashboard-items '((recents . 5) (setq dashboard-items '((recents . 5)
(agenda . 5 ) (agenda . 5 )
@ -502,7 +501,7 @@ Emacs Dashboard is an extensible startup screen showing you recent files, bookma
dashboard-insert-navigator dashboard-insert-navigator
dashboard-insert-newline dashboard-insert-newline
dashboard-insert-init-info dashboard-insert-init-info
dashboard-insert-items ;dashboard-insert-items
dashboard-insert-newline dashboard-insert-newline
dashboard-insert-footer)) dashboard-insert-footer))
(setq dashboard-navigator-buttons (setq dashboard-navigator-buttons
@ -542,6 +541,7 @@ Emacs Dashboard is an extensible startup screen showing you recent files, bookma
(bookmarks . "nf-oct-book"))) (bookmarks . "nf-oct-book")))
:config :config
(dashboard-setup-startup-hook)) (dashboard-setup-startup-hook))
(setq dashboard-startup-banner "~/.emacs.d/nixmacs.xpm") ;; use custom image as banner
#+end_src #+end_src
* Diminish * Diminish
This package implements hiding or abbreviation of the modeline displays (lighters) of minor-modes. With this package installed, you can add :diminish to any use-package block to hide that particular mode in the modeline. This package implements hiding or abbreviation of the modeline displays (lighters) of minor-modes. With this package installed, you can add :diminish to any use-package block to hide that particular mode in the modeline.
@ -1753,6 +1753,14 @@ one, an error is signaled."
(set-window-buffer other-win buf-this-buf) (set-window-buffer other-win buf-this-buf)
(select-window other-win)))) (select-window other-win))))
#+end_src #+end_src
#+begin_src emacs-lisp
(use-package windmove
:bind
(("<M-S-up>" . buf-move-up)
("<M-S-down>" . buf-move-down)
("<M-S-left>" . buf-move-left)
("<M-S-right>" . buf-move-right)))
#+end_src
* Completions * Completions
** Corfu ** Corfu
#+begin_src emacs-lisp #+begin_src emacs-lisp

4053
nixmacs.xpm Normal file

File diff suppressed because it is too large Load diff

View file

@ -3,7 +3,13 @@
withLsps ? false, withLsps ? false,
... ...
}: let }: let
configFile = pkgs.tangleOrgBabelFile "default.el" ./config.org { preTangledFile = pkgs.writeText "config.org" ''
${builtins.readFile ./config.org}
#+begin_src emacs-lisp
(setq dashboard-startup-banner "${./nixmacs.xpm}")
#+end_src
'';
configFile = pkgs.tangleOrgBabelFile "default.el" preTangledFile {
languages = ["emacs-lisp"]; languages = ["emacs-lisp"];
}; };
emacs = pkgs.emacsWithPackagesFromUsePackage { emacs = pkgs.emacsWithPackagesFromUsePackage {