1f7fd4683ec5

Updates
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sun, 15 Jul 2018 15:38:15 +0000
parents 196885c6b61b
children b7c569c5f66b 114bb5f00e48
branches/tags (none)
files mutt/notmuch-config roswell/clhs.lisp vim/vimrc

Changes

--- a/mutt/notmuch-config	Wed Jul 11 01:43:19 2018 +0000
+++ b/mutt/notmuch-config	Sun Jul 15 15:38:15 2018 +0000
@@ -11,7 +11,7 @@
 # configured here named ".notmuch".
 #
 [database]
-path=/Users/sjl/.mail/sjl
+path=/home/sjl/.mail/sjl
 
 # User configuration
 #
@@ -31,7 +31,7 @@
 [user]
 name=Steve Losh
 primary_email=steve@stevelosh.com
-other_email=still.life@gmail.com;stilllife@gmail.com;sjl@pculture.org;steve@pculture.org;steve@ladyluckblues.com;sjl@simple.com;slosh@simple.com;slj@simple.com
+other_email=still.life@gmail.com;stilllife@gmail.com;sjl@pculture.org;steve@pculture.org;steve@ladyluckblues.com;sjl@simple.com;slosh@simple.com;slj@simple.com;steven15@ru.is
 
 # Configuration for "notmuch new"
 #
@@ -48,7 +48,7 @@
 #
 [new]
 tags=unread;inbox;
-ignore=
+ignore=spam
 
 # Search configuration
 #
--- a/roswell/clhs.lisp	Wed Jul 11 01:43:19 2018 +0000
+++ b/roswell/clhs.lisp	Sun Jul 15 15:38:15 2018 +0000
@@ -52,8 +52,7 @@
 
 
 (defun clhs-base-url ()
-  (or (uiop:getenv "CLHS_BASE_URL")
-      "http://www.lispworks.com/documentation/HyperSpec/"))
+  "file:///home/sjl/Dropbox/HyperSpec/HyperSpec/")
 
 (defun clhs-cache-directory ()
   (let ((cache-dir
@@ -64,13 +63,7 @@
 (defun clhs-cache-file ()
   (merge-pathnames #P"symbols-map.sexp" (clhs-cache-directory)))
 
-(defun open-command ()
-  (or (uiop:getenv "CLHS_OPEN_COMMAND")
-      #+darwin "open"
-      #+linux  "xdg-open"
-      #+(or windows win32) "explorer"
-      #-(or darwin linux windows win32)
-      (error "CLHS_OPEN_COMMAND is not set.")))
+(defun open-command () "w3m")
 
 
 (defun terminate (code &optional message &rest args)
@@ -145,7 +138,10 @@
     (if path
         (let ((url (clhs-url path)))
           (format t "~&Opening ~S~%" url)
-          (uiop:run-program `(,(open-command) ,url) :ignore-error-status t :output :interactive))
+          (uiop:run-program `(,(open-command) ,url)
+                            :ignore-error-status t
+                            :input :interactive
+                            :output :interactive))
         (terminate -1 "Symbol not found: ~A" target-symbol))))
 
 (defun build ()
--- a/vim/vimrc	Wed Jul 11 01:43:19 2018 +0000
+++ b/vim/vimrc	Sun Jul 15 15:38:15 2018 +0000
@@ -2313,6 +2313,57 @@
 endfunction
 
 " }}}
+" Pass {{{
+
+" https://github.com/milki/password-store/blob/master/contrib/vim/noplaintext.vim
+"
+" Prevent various Vim features from keeping the contents of pass(1) password
+" files (or any other purely temporary files) in plaintext on the system.
+"
+" Either append this to the end of your .vimrc, or install it as a plugin with
+" a plugin manager like Tim Pope's Pathogen.
+"
+" Author: Tom Ryder <tom@sanctum.geek.nz>
+"
+
+" Don't backup files in temp directories or shm
+if exists('&backupskip')
+    set backupskip+=/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+endif
+
+" Don't keep swap files in temp directories or shm
+if has('autocmd')
+    augroup swapskip
+        autocmd!
+        silent! autocmd BufNewFile,BufReadPre
+            \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+            \ setlocal noswapfile
+    augroup END
+endif
+
+" Don't keep undo files in temp directories or shm
+if has('persistent_undo') && has('autocmd')
+    augroup undoskip
+        autocmd!
+        silent! autocmd BufWritePre
+            \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+            \ setlocal noundofile
+    augroup END
+endif
+
+" Don't keep viminfo for files in temp directories or shm
+if has('viminfo')
+    if has('autocmd')
+        augroup viminfoskip
+            autocmd!
+            silent! autocmd BufNewFile,BufReadPre
+                \ /tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*,*/shm/*
+                \ setlocal viminfo=
+        augroup END
+    endif
+endif
+
+" }}}
 " Python-Mode {{{
 
 let g:pymode_doc = 1