Skip to content

Instantly share code, notes, and snippets.

@shapr
Created April 15, 2015 19:55
Show Gist options
  • Save shapr/9c2de0b3edc061e8a9ef to your computer and use it in GitHub Desktop.
Save shapr/9c2de0b3edc061e8a9ef to your computer and use it in GitHub Desktop.
shae's lojban defuns
;;;;;;;;; lojban defuns
(defun lojban-gloss () ""
(interactive "r")
(shell-command-on-region (region-beginning) (region-end)
"cmafihe -b"))
(defun lojban-parse () ""
(interactive)
(shell-command-on-region (region-beginning) (region-end)
"jbofihe -x -b"))
(defun lojban-fgrep (regexp) "fgrep lojban-common for a word"
(interactive "sfgrep pattern: ")
(grep (concat "fgrep -h \"" regexp "\" /usr/share/lojban/*")))
;(global-set-key [(f9)] 'lojban-fgrep)
;(global-set-key [(f11)] 'lojban-parse)
; end lojban stuff
(message "loaded shae-lojban")
(provide 'shae-lojban)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment