Procházet zdrojové kódy

Emacs changes and notes

Simon Watson před 3 roky
rodič
revize
528d796568
2 změnil soubory, kde provedl 24 přidání a 2 odebrání
  1. 4 1
      emacs/.emacs-all
  2. 20 1
      orgmode/1.org

+ 4 - 1
emacs/.emacs-all

@@ -153,8 +153,11 @@
 (global-set-key (kbd "C-c w") 'windresize)
 (global-set-key (kbd "C-c t") 'sol-dk)
 (global-set-key (kbd "C-c g") 'sol-l)
-(global-set-key (kbd "C-c y") 'evil-mode) ; Quick toggle evil-mode for slime err 
+(global-set-key (kbd "C-c y") 'evil-mode) ; Quick toggle evil-mode for slime err
+(global-set-key (kbd "C-c h") 'tramp-cleanup-connection)
 
+;;; Can probably be replaced with
+;;; a yasnippet
 (fset 'date-to-point
    (kmacro-lambda-form [?\C-u ?\M-! ?d ?a ?t ?e return] 0 "%d"))
 

+ 20 - 1
orgmode/1.org

@@ -1,9 +1,28 @@
 SPW PERSONAL -*- mode: org -*-
+#+STARTUP: indent
 
 * Notes
 ** Interesting Things/Links/Etc
+*** Eshell stuff:
+**** Increase eshell perf:
+- https://github.com/Stebalien/stutter.el
+- Bug report to increase find perf
+  #+BEGIN_SRC shell
+│geza42 • 1 pts 1month
+│Emacs has an I/O related bug, which may depend on the OS. For me, applying the hack described in this [bug
+│report](https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44007) makes `seq 1000000` (in eshell) \~3x times faster
+│(with \~1 month old master build): it runs in 2.0 sec instead of 6.2 sec.
+│
+│In the bug report, a file is `cat`'d to the output. The difference between default emacs vs. emacs with properly
+│set variables + the hack is 18 sec vs. 0.3 sec, 60x difference.
+│
+│By properly set variables I mean these:
+│
+│    (setq read-process-output-max (* 1024 1024))
+│    (setq process-adaptive-read-buffering nil)
+  #+END_SRC
 *** Tuir - new fork of rtv
-- https://pypi.org/project/tuir/
+- https://pypi.org/project/tuir
   
 ** Projects
 *** TODO Figure out git situation between spwbk.site and github/gitlab/etc