Posted By

noah on 06/02/07


Tagged

html code emacs


Versions (?)

BASE tag insertion macro


 / Published in: Emacs Lisp
 

Insert a BASE HREF tag just after the head tag of an HTML document Positions point just after the second forwardslash in "HTTP://"

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;; Insert a BASE HREF tag just after the head tag of an HTML document
  3. ;; Positions point just after the second forwardslash in "HTTP://"
  4.  
  5. (fset 'insert-base-href
  6. [?\M-< ?\C-s ?< ?h ?e ?a ?d ?\C-e return return return up ?< ?b ?a ?s ?e ? ?h ?r ?e ?f ?= ?" ?h ?t ?t ?p ?: ?/ ?/ ?" ?> left left])

Report this snippet  

You need to login to post a comment.