pinwheel: Make sure e can open files when started
This commit is contained in:
@@ -63,8 +63,14 @@
|
||||
*** Disable startup messages
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq inhibit-startup-message t)
|
||||
(setq initial-buffer-choice t)
|
||||
(setq initial-scratch-message nil)
|
||||
|
||||
(setq initial-buffer-choice
|
||||
(lambda ()
|
||||
(if (buffer-file-name)
|
||||
(current-buffer)
|
||||
(scratch-buffer)
|
||||
)))
|
||||
#+END_SRC
|
||||
*** Don't resize gui when setting new font
|
||||
... it affecs startup time
|
||||
|
||||
@@ -11,11 +11,11 @@ let
|
||||
};
|
||||
|
||||
e = pkgs.writeShellScriptBin "e" ''
|
||||
${emacs}/bin/emacs -nw
|
||||
${emacs}/bin/emacs -nw $@
|
||||
'';
|
||||
|
||||
ec = pkgs.writeShellScriptBin "ec" ''
|
||||
${emacs}/bin/emacsclient -t -c -a=
|
||||
${emacs}/bin/emacsclient -t -c -a= $@
|
||||
'';
|
||||
in
|
||||
{
|
||||
@@ -23,8 +23,8 @@ in
|
||||
|
||||
home-manager.users.alex = {
|
||||
home.sessionVariables = {
|
||||
EDITOR = "${e}/bin/e";
|
||||
VISUAL = "${e}/bin/e";
|
||||
EDITOR = "${e}/bin/e $@";
|
||||
VISUAL = "${e}/bin/e $@";
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
|
||||
Reference in New Issue
Block a user