Emacs: Remove nix info from frame title
Alan Pearce alan@alanpearce.eu
Fri, 15 Sep 2017 12:19:57 +0200
1 files changed, 0 insertions(+), 17 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -272,25 +272,8 @@ (column-number-mode -1) (line-number-mode -1) (size-indication-mode t) - (require 'f) (setq frame-title-format (list "Emacs" - (if (and nix-emacs invocation-directory) - (list " (Nix Generation " - (cadr - (split-string (f-base - (car - (last (seq-take-while - (lambda (s) (s-contains? "profile" s)) - (split-string - (s-chomp (shell-command-to-string (concat "nix-store -q --roots " invocation-directory))) - "\n"))))) - "-")) - " " - (s-left 6 (nth 3 (f-split invocation-directory))) - "..." - (s-right 6 (car (split-string (nth 3 (f-split invocation-directory)) "-"))) - ")")) '(buffer-file-name " — %f") '(dired-directory (" — " dired-directory)))) ;; #+END_SRC