Explorar el Código

bashrc, emacs.el: add func memo

pull/1/head
10sr hace 10 años
padre
commit
064d857ab0
Se han modificado 2 ficheros con 17 adiciones y 0 borrados
  1. +9
    -0
      bashrc
  2. +8
    -0
      emacs.el

+ 9
- 0
bashrc Ver fichero

@@ -342,6 +342,15 @@ ssh(){
command ssh "$@"
}

memo(){
if test -z "$1"
then
$EDITOR memo.txt
else
$EDITOR "$1/memo.txt"
fi
}

clk(){
local tformat="%Y/%m/%d %H:%M:%S %z"
cal


+ 8
- 0
emacs.el Ver fichero

@@ -1911,6 +1911,14 @@ if arg given, use that eshell buffer, otherwise make new eshell buffer."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; misc funcs

(defun memo (&optional dir)
"Open memo.txt"
(interactive)
(pop-to-buffer (find-file-noselect (concat (if dir
(file-name-as-directory dir)
"")
"memo.txt"))))
(file-name-as-directory "..")
(defun my-rgrep-gitgrep (word)
"Recursive grep with git-grep"
(interactive "sgit-grep: Word to search: ")


Cargando…
Cancelar
Guardar