   (while (search-forward txt nil t)
     (insert (int-to-string la))
     (setq la (1+ la))))
-
 
 
 ;;; Filladapt is a syntax-highlighting package.  When it is enabled it

(define-key global-map "\C-h" 'backward-delete-char)
(define-key global-map "\C-x?" 'help-command)

;;;; MUSE and Planner Love Configuration
(add-to-list 'load-path "~/.xemacs/xemacs-packages/muse/lisp")
(add-to-list 'load-path "~/.xemacs/xemacs-packages/planner")
(add-to-list 'load-path "~/.xemacs/xemacs-packages/remember")
(add-to-list 'load-path "~/.xemacs/xemacs-packages/icicles")
(add-to-list 'load-path "~/.xemacs/xemacs-packages")

;;; Automatically load matlab mode and the associate functions
(autoload 'matlab-mode "~/.xemacs/xemacs-packages/matlab.el" "Enter Matlab mode." t)
(setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist))
(autoload 'matlab-shell "~/.xemacs/xemacs-packages/matlab.el" "Interactive Matlab mode." t)

;;;; enable ibuffer and occur
(autoload 'ibuffer "ibuffer" "List buffers." t)

;;;; enable revbufs
(autoload 'revbufs "revbufs" "Revert changed buffers." t)

;; cscope -- not on all machines
;(ignore-errors (require 'xcscope))

;; (pymacs-load "bikeemacs" "brm-")
;; (brm-init)

;(autoload 'python-mode "python-mode" "Python editing mode." t)
;(setq auto-mode-alist
;      (cons '("\\.py$" . python-mode) auto-mode-alist))

;; ;;; AUCTex configurations
;; (ignore-errors
;;   (load-library "latex.el")
;;   (require 'tex-site)
;;   (setq TeX-auto-save t)
;;   (setq TeX-parse-self t)
;;   (setq-default TeX-master nil)
;;   (add-hook 'LaTeX-mode-hook 'turn-on-reftex)   ; with AUCTeX LaTeX mode
;;   (add-hook 'latex-mode-hook 'turn-on-reftex))   ; with Emacs latex mode

;; To enable syntax highlighting by default in all buffers, as well as
;; keeping the highlighting up to date as you edit the document.

  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
(global-set-key "\C-x\C-b" 'ibuffer)

(put 'narrow-to-region 'disabled nil)

;;; YCMD support
