emacs: update
This commit is contained in:
parent
4dde3a0e00
commit
a6c581ee04
|
@ -13,7 +13,7 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = with pkgs; lib.mkDefault (if pkgs ? emacs-pgtk then emacs-pgtk else emacs-gtk);
|
package = with pkgs; lib.mkDefault (if pkgs ? emacs-pgtk then emacs-pgtk else emacs29-gtk);
|
||||||
extraPackages = epkgs: with epkgs; [
|
extraPackages = epkgs: with epkgs; [
|
||||||
evil
|
evil
|
||||||
evil-numbers
|
evil-numbers
|
||||||
|
@ -45,8 +45,7 @@ in
|
||||||
markdown-mode
|
markdown-mode
|
||||||
json-mode
|
json-mode
|
||||||
|
|
||||||
vscode-dark-plus-theme
|
moe-theme
|
||||||
kaolin-themes
|
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
;;;; Set emacs PATH
|
;;;; Set emacs PATH
|
||||||
|
|
|
@ -1,8 +1,17 @@
|
||||||
;Graphical
|
;Graphical
|
||||||
(when (display-graphic-p)
|
;(when (display-graphic-p)
|
||||||
(setq-default cursor-type '(bar . 1))
|
;
|
||||||
(set-frame-font "FiraCode Nerd Font" nil t)
|
;)
|
||||||
)
|
(tool-bar-mode -1)
|
||||||
|
(load-theme 'moe-dark)
|
||||||
|
|
||||||
|
|
||||||
|
(setq-default cursor-type '(bar . 1))
|
||||||
|
(set-frame-font "FiraCode Nerd Font" nil t)
|
||||||
|
(pixel-scroll-precision-mode 1)
|
||||||
|
(setq pixel-scroll-precision-large-scroll-height 10.0)
|
||||||
|
(setq mouse-wheel-follow-mouse 't)
|
||||||
|
|
||||||
|
|
||||||
;Hide startup screen if started with file
|
;Hide startup screen if started with file
|
||||||
(defun startup-screen-advice (orig-fun &rest args)
|
(defun startup-screen-advice (orig-fun &rest args)
|
||||||
|
@ -10,12 +19,19 @@
|
||||||
(apply orig-fun args)))
|
(apply orig-fun args)))
|
||||||
(advice-add 'display-startup-screen :around #'startup-screen-advice)
|
(advice-add 'display-startup-screen :around #'startup-screen-advice)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;Enable dashboard
|
;Enable dashboard
|
||||||
(dashboard-setup-startup-hook)
|
(dashboard-setup-startup-hook)
|
||||||
(when (daemonp)
|
(when (daemonp)
|
||||||
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) ; Show dashboard when emacs is running as daemon
|
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) ; Show dashboard when emacs is running as daemon
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
:CUA
|
:CUA
|
||||||
(cua-mode 1)
|
(cua-mode 1)
|
||||||
(global-set-key (kbd "C-y") 'undo-redo)
|
(global-set-key (kbd "C-y") 'undo-redo)
|
||||||
|
|
Loading…
Reference in New Issue