             (browse-url alias)
             (no-target))))
 
-(defun smsn-visit-as-url (value-selector)
+(defun brain-visit-as-url (value-selector)
     "visit the URL generated by VALUE-SELECTOR in a browser"
     (visit-target-value value-selector (lambda (value) value)))
 
-(defun smsn-visit-url-at-point ()
+(defun brain-visit-url-at-point ()
     "visit the URL at point in a browser"
     (interactive)
     (goto-address-at-point))


;; WRAPPER API ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defun smsn-emacsclient-eval (function)
    "evaluate FUNCTION from emacsclient as if a user had typed it into the current buffer"
    (set-buffer (window-buffer (selected-window)))
    (funcall function))

(defun smsn-previous-line ()
    (interactive)
    (previous-line)
    (emacspeak-speak-line))

(defun smsn-next-line ()
    (interactive)
    (next-line)
    (emacspeak-speak-line))

(defun smsn-backward-char ()
    (interactive)
    (backward-char)
    (emacspeak-speak-display-char t)) ;; PREFIX arg disables phonetic pronunciation

(defun smsn-forward-char ()
    (interactive)
    (forward-char)
    (emacspeak-speak-display-char t)) ;; PREFIX arg disables phonetic pronunciation


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(provide 'brain-mode)

;; Brain-mode: the MyOtherBrain Emacs library
;;
;; This major mode allows you to view, edit, search, and process a MyOtherBrain personal knowledge base.
;;
;; Dependencies:
;;
;;     json, linum, goto-addr, aes, and latex-math-preview
;;
;; Required global variables:
;;
;;     brain-rexster-url: IP, port, and local path to the rexster server
;;     brain-rexster-graph: name of MyOtherBrain graph served by Rexster
;;
;; Optional global variables:
;;
;;     brain-default-graphml-file: file to which GraphML dumps will be exported by default
;;     brain-default-vertices-file: file to which tab-separated vertex dumps will be exported by default
;;     brain-default-edge-file: file to which tab-separated edge dumps will be exported by default
;;     brain-default-pagerank-file: file to which PageRank results will be exported by default
;;
;; For example:
;;
;;     (defvar brain-rexster-url "http://localhost:8182")
;;     (defvar brain-rexster-graph "joshkb")
;;     (defvar brain-default-graphml-file "/tmp/joshkb-graphml.xml")
;;     (defvar brain-default-vertices-file "/tmp/joshkb-vertices.tsv")
;;     (defvar brain-default-edges-file "/tmp/joshkb-edges.tsv")
;;     (defvar brain-default-pagerank-file "/tmp/joshkb-pagerank.tsv")


;; DEPENDENCIES ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; for JSON-formatted messages to and from Semantic Synchrony services (see json-read-from-string, json-encode)
(require 'json)

;; for line number annotations in buffers (see linum-mode)
