diff --git a/.emacs.d/elpa/archive-contents b/.emacs.d/elpa/archive-contents deleted file mode 100644 index 0a78835..0000000 --- a/.emacs.d/elpa/archive-contents +++ /dev/null @@ -1,447 +0,0 @@ -(1 - (load-relative . - [(0 1) - nil "relative file load (within a multi-file Emacs package)" single]) - (test-unit . - [(0 1) - nil "Unit Test Framework for Emacs Lisp " single]) - (zenburn . - [(1 8) - nil "just some alien fruit salad to keep you in the zone" single]) - (multi-project . - [(0 0 1) - nil "Work with multiple projects" single]) - (hungry-delete . - [(1 0) - nil "hungry delete minor mode" single]) - (Save-visited-files . - [(1 2) - nil "save opened files across sessions" single]) - (c-eldoc . - [(0 6) - nil "helpful description of the arguments to C functions" single]) - (mv-shell . - [(1 0) - nil "keep buffers in sync with filename throughout 'mv'commands in shell-mode." single]) - (diff-git . - [(0 1 1) - nil "Git integration with diff-mode" single]) - (html-script-src . - [(0 0 2) - nil "Insert ")) - (script "v" "")) - (script "%" "<%=" "ASP output" - ("<%="(p " Variabile: ")"%>")) - (script "a" "<%xx%>" "ASP code" - ("<%\n"(r "Code: " )"\n%>")) - (script "<" "<%xx%>" "ASP break" - ("%>\n"(r "Code: " )"\n<%")) - (script "=" "=" "PHP output" - ("="(p " Variabile: ")"?>")) - (script "p" "" "PHP code" - (" PHP\n"(r "Code: " )"\n?>")) - (script "?" "" "PHP break" - ("?>\n"(r " Code: " )"\n PHP")) - )) - -;;}}} - -;;{{{ html-helper-smart-insert-item - -;; there are two different kinds of items in HTML - those in regular -;; lists
" nil t))) - (endpre (save-excursion (search-backward "" pre t)))) - (and pre (null endpre)))) - -(defadvice html-helper-indent (around leave-pre-alone activate) - (cond ((not (html-helper-indent-leave-alone-p)) - ad-do-it) - (html-helper-print-indent-info - (message "In
-- skipping indentation"))
- (t nil)))
-
-(defun html-helper-indent ()
- "Indentation workhorse function."
- (if html-helper-never-indent
- ()
- (let ((m (point-marker))
- (bol (progn (beginning-of-line) (point))))
-
- ;; unindent the line
- (delete-region (point) (progn (back-to-indentation) (point)))
-
- (let* ((where (html-helper-guess-prev-context))
- (prev-context (car where))
- (this-context nil)
- (previ (cdr where))
- (newi (cond
- ((eq prev-context 'list-end) previ)
- ((eq prev-context 'item-start) previ)
- ((eq prev-context 'list-start) (+ previ html-helper-basic-offset))
- (t previ))))
-
- ;; newi is set to the basic indentation, now adjust indentation
- ;; based on what the current line is.
- (if (looking-at html-helper-any-list)
- (progn
- (setq this-context (html-helper-context-symbol))
- (cond
- ;; item start or end and last line was a list-end: go backwards
- ((and
- (or (eq this-context 'item-start) (eq this-context 'item-end))
- (eq prev-context 'list-end))
- (setq newi (- newi html-helper-item-continue-indent)))
-
- ;; end of list and last line was an end: go backwards twice
- ((and (eq this-context 'list-end) (eq prev-context 'list-end))
- (setq newi (- newi html-helper-item-continue-indent html-helper-basic-offset)))
-
- ;; Any other end of list? Indent negative
- ((and (eq this-context 'list-end))
- (setq newi (- newi html-helper-basic-offset)))
-
- ;; start of list and last line beginning of item, go forwards
- ((and (eq this-context 'list-start) (eq prev-context 'item-start))
- (setq newi (+ newi html-helper-item-continue-indent)))))
-
- ;; default: no special case, indent forward for text
- (cond
- ;; last line an item? Beginning of continued item - go forward
- ((eq prev-context 'item-start)
- (setq newi (+ newi html-helper-item-continue-indent)))))
-
- (if html-helper-print-indent-info
- (message "Last Context: %s, This Context: %s, Previous: %s New: %s" prev-context this-context previ newi))
-
- ;; just in case
- (if (< newi 0)
- (setq newi 0))
- (indent-to newi newi)
-
- ;; adjust point to where it was before, or at start of indentation
- (goto-char (marker-position m))
- (if (< (current-column) (current-indentation))
- (back-to-indentation))))))
-
-;;}}}
-
-;;{{{ completion finder for tempo
-
-(defvar html-helper-completion-finder
- (if html-helper-emacs18
- 'html-helper-emacs18-completion-finder
- "\\(\\(<\\|&\\).*\\)\\=")
- "Passed to tempo-use-tag-list, used to find tags to complete.")
-
-;; The regexp finds everything between the last < or & and point,
-;; which is good enough to match the tags HTML might complete.
-;; emacs18 doesn't have the \= for regexps, though, so we do something
-;; more hackish.
-
-(defun html-helper-emacs18-completion-finder ()
- "Unfortunately emacs18 doesn't support \\= in regexps, so we do this hack.
-If you have problems with it, maybe you should upgrade to emacs19 :-)"
- (let* ((where nil)
- (s (buffer-substring
- (point)
- (setq where (save-excursion
- (re-search-backward "<\\|&" (min (point-min) 100) t)
- (point))))))
- (cons s where)))
-
-;;}}}
-
-;;{{{ timestamps
-
-(defun html-helper-update-timestamp ()
- "Basic function for updating timestamps.
-It finds the timestamp in the buffer by looking for
-`html-helper-timestamp-start', deletes all text up to
-`html-helper-timestamp-end', and runs `html-helper-timestamp-hook' which
-will should insert an appropriate timestamp in the buffer."
- (save-excursion
- (goto-char (point-max))
- (if (not (search-backward html-helper-timestamp-start nil t))
- (message "timestamp delimiter start was not found")
- (let ((ts-start (+ (point) (length html-helper-timestamp-start)))
- (ts-end (if (search-forward html-helper-timestamp-end nil t)
- (- (point) (length html-helper-timestamp-end))
- nil)))
- (if (not ts-end)
- (message "timestamp delimiter end was not found. Type C-c C-t to insert one.")
- (delete-region ts-start ts-end)
- (goto-char ts-start)
- (run-hooks 'html-helper-timestamp-hook)))))
- nil)
-
-(defun html-helper-default-insert-timestamp ()
- "Default timestamp insertion function."
- (let ((time (current-time-string)))
- (insert "Last modified: "
- (substring time 0 20)
- (nth 1 (current-time-zone))
- " "
- (substring time -4)
- " ")))
-
-(defun html-helper-insert-timestamp-delimiter-at-point ()
- "Simple function that inserts timestamp delimiters at point.
-Useful for adding timestamps to existing buffers."
- (interactive)
- (insert html-helper-timestamp-start)
- (insert html-helper-timestamp-end))
-
-;;}}}
-
-;;{{{ html-helper-insert-new-buffer-strings
-
-(tempo-define-template "html-skeleton" html-helper-new-buffer-template
- nil
- "Insert a skeleton for a HTML document")
-
-(tempo-define-template "ASP-skeleton" html-helper-new-ASP-buffer-template
- nil
- "Insert a skeleton for a ASP document")
-
-(tempo-define-template "ASPX-skeleton" html-helper-new-ASPX-buffer-template
- nil
- "Insert a skeleton for a ASPX document")
-
-(tempo-define-template "PHP-skeleton" html-helper-new-PHP-buffer-template
- nil
- "Insert a skeleton for a PHP document")
-
-(defun html-helper-insert-new-buffer-strings ()
- "Insert `html-helper-new-buffer-strings'."
- (tempo-template-html-skeleton))
-
-(defun html-helper-insert-new-ASP-buffer-strings ()
- "Insert `html-helper-new-ASP-buffer-strings'."
- (tempo-template-ASP-skeleton))
-
-(defun html-helper-insert-new-ASPX-buffer-strings ()
- "Insert `html-helper-new-ASPX-buffer-strings'."
- (tempo-template-ASPX-skeleton))
-
-(defun html-helper-insert-new-PHP-buffer-strings ()
- "Insert `html-helper-new-PHP-buffer-strings'."
- (tempo-template-PHP-skeleton))
-
-
-(defun html-helper-insert-csharp-script-tag ()
- "Insert a C# script block"
- (interactive)
- (insert "")
- (search-backward "\n" nil t)
-)
-;;}}}
-
-;;{{{ html-helper-mode
-
-(defun base-html-helper-mode (mode)
- "basic mode, called by the exported modes with MODE telling what
-is the mode to run (that's the skeleton to insert in empty files)"
- (kill-all-local-variables)
-
- (use-local-map html-helper-mode-map)
- (setq local-abbrev-table html-helper-mode-abbrev-table)
- (set-syntax-table html-helper-mode-syntax-table)
-
- (make-local-variable 'comment-start)
- (make-local-variable 'comment-end)
- (make-local-variable 'comment-column)
- (make-local-variable 'comment-start-skip)
- (make-local-variable 'indent-line-function)
- (make-local-variable 'html-helper-count)
- (make-local-variable 'html-helper-mode-local-JSP-not-ASP)
-
- ;; font-lock setup for various emacsen: XEmacs, Emacs 19.29+, Emacs <19.29.
- ;; By Ulrik Dickow . (Last update: 05-Sep-1995).
- (cond ((string-match "XEmacs\\|Lucid" (emacs-version)) ; XEmacs/Lucid
- (put major-mode 'font-lock-keywords-case-fold-search t))
- ;; XEmacs (19.13, at least) guesses the rest correctly.
- ;; If any older XEmacsen don't, then tell me.
- ;;
- ((string-lessp "19.28.89" emacs-version) ; Emacs 19.29 and later
- (make-local-variable 'font-lock-defaults)
- (setq font-lock-defaults '(html-helper-font-lock-keywords t t)))
- ;;
- (t ; Emacs 19.28 and older
- (make-local-variable 'font-lock-keywords-case-fold-search)
- (make-local-variable 'font-lock-keywords)
- (make-local-variable 'font-lock-no-comments)
- (setq font-lock-keywords-case-fold-search t)
- (setq font-lock-keywords html-helper-font-lock-keywords)
- (setq font-lock-no-comments t)))
-
- (setq comment-start ""
- comment-start-skip "', but also e.g the single, complete declaration
- ;; `c3 (still comment) ----c4- c4-- >'.
- ;; Note that e.g. Netscape 3.01 Gold doesn't fully live up to the spec.
- '("" 0 font-lock-comment-face t)))
- "Additional expressions to highlight in HTML helper mode.")
-
-;; internal variables
-
-(defvar html-helper-count 0 "Counter during server script matching")
-
-(defvar html-helper-verbose t
- "Non nil to show a counter during server script matching")
-
-;; Function to match an asp script (hopefully) without overflowing the
-;; regexp stack (not inline <%= ... %>)
-;;
-;;
-(defun html-helper-match-asp-php (last)
- (cond (html-helper-verbose
- (message "Fontifying %s... (PHP/ASP..%s)" bufname (make-string (incf html-helper-count) ?.))))
- (cond ((search-forward-regexp "[^\"]<[?%][^=]" last t) ; match inline elsewhere
- (backward-char 1)
- (let ((beg (point)))
-; (cond ((search-forward-regexp "\\([^%?\n]\\|[%?][^>]\\|\\(\"\\([%?]>\\|.\\)*\"\\)\\)*[?%]>" last t)
- (cond ((search-forward-regexp "\\([^\%\?\n\"]\\|[%?][^>]\\)*[?%]>" last t)
- (set-match-data (list beg (point)))
- t )
- (t nil))))
- (t nil)))
-
-(defun html-helper-fontify-region (beg end verbose)
- (setq html-helper-count 0)
- (let ((loudly (and verbose
- (> (- end beg) (/ (buffer-size) 2)))))
- (setq html-helper-verbose loudly)
- (font-lock-default-fontify-region beg end loudly)))
-
-(set (make-local-variable font-lock-fontify-region-function)
- 'html-helper-fontify-region)
-
-(defun html-helper-fontify-buffer ()
- (setq html-helper-count 0)
- (setq html-helper-verbose (if (numberp font-lock-verbose)
- (> (buffer-size) font-lock-verbose)
- font-lock-verbose))
- (font-lock-default-fontify-buffer))
-
-(set (make-local-variable font-lock-fontify-buffer-function)
- 'html-helper-fontify-buffer)
-
-;;}}} faces
-
-;;{{{ patterns for hilit19
-
-;; Define some useful highlighting patterns for the hilit19 package.
-;; These will activate only if hilit19 has already been loaded.
-;; Thanks to for some pattern suggestions
-
-(if (featurep 'hilit19)
- (hilit-set-mode-patterns
- 'html-helper-mode
- '(("" comment)
- ("[^<>]*\\(<[^>]*>[^<>]*\\)*>" nil comment) ;
- ("" " " defun)
- ("" " " bold) ;only colour inside tag
- ("" define)
- ("" nil define)
- ("
" include)
- ("