Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;********************************************************************************************************************************
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;; File name: ` ~/.emacs '
- ;;; ---------------------
- ;;;
- ;;; If you need your own personal ~/.emacs
- ;;; please make a copy of this file
- ;;; an placein your changes and/or extension.
- ;;;
- ;;; Copyright (c) 1997-2002 SuSE Gmbh Nuernberg, Germany.
- ;;;
- ;;; Author: Werner Fink, <feedback@...> 1997,98,99,2002
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;
- ;;; Test of Emacs derivates
- ;; CC-mode
- ;;(add-hook 'c-mode-hook '(lambda ()
- ;;(setq ac-sources (append '(ac-source-semantic) ac-sources))
- ;;(local-set-key (kbd "RET") 'newline-and-indent)
- ;;(linum-mode t)
- ;;(semantic-mode t)))
- ;; CEDET
- (load-file "~/cedet-1.0.1/common/cedet.el")
- (global-ede-mode 1) ; Enable the Project management system
- (semantic-load-enable-excessive-code-helpers) ; Enable prototype help and smart completion
- (global-srecode-minor-mode 1) ; Enable template insertion menu
- (require 'semantic-ia)
- (require 'semantic-gcc)
- (require 'semanticdb)
- (semantic-add-system-include "/usr/include/OGRE" 'c++-mode)
- (semantic-add-system-include "/usr/include/OGRE" 'c-mode)
- ;;ECB
- (add-to-list 'load-path
- "~/.emacs.d/ecb-snap")
- (require 'ecb-autoloads)
- ;;; -----------------------
- (if (string-match "XEmacs\\|Lucid" emacs-version)
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;; XEmacs
- ;;; ------
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- (progn
- (if (file-readable-p "~/.xemacs/init.el")
- (load "~/.xemacs/init.el" nil t))
- )
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;; GNU-Emacs
- ;;; ---------
- ;;; load ~/.gnu-emacs or, if not exists /etc/skel/.gnu-emacs
- ;;; For a description and the settings see /etc/skel/.gnu-emacs
- ;;; ... for your private ~/.gnu-emacs your are on your one.
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- (if (file-readable-p "~/.gnu-emacs")
- (load "~/.gnu-emacs" nil t)
- (if (file-readable-p "/etc/skel/.gnu-emacs")
- (load "/etc/skel/.gnu-emacs" nil t)))
- ;; Custom Settings
- ;; ===============
- ;; To avoid any trouble with the customization system of GNU emacs
- ;; we set the default file ~/.gnu-emacs-custom
- ;;
- (setq x-select-enable-clipboard t)
- (setq-default c-basic-offset 4)
- ;;
- ;;FULL AKC
- (add-to-list 'load-path "~/.emacs.d/full-ack.el")
- (autoload 'ack-same "full-ack.el" nil t)
- (autoload 'ack "full-ack.el" nil t)
- (autoload 'ack-find-same-file "full-ack.el" nil t)
- (autoload 'ack-find-file "full-ack.el" nil t)
- ;;DESKTOP
- (desktop-save-mode 1)
- (setq history-length 250)
- (add-to-list 'desktop-globals-to-save 'file-name-history)
- ;;;
- )
- ;;;
- (custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(delete-selection-mode nil)
- '(ecb-options-version "2.40")
- '(global-semantic-show-parser-state-mode t nil (semantic-util-modes))
- '(mark-even-if-inactive t)
- '(scroll-bar-mode (quote right))
- '(semantic-edits-verbose-flag t)
- '(semantic-idle-scheduler-work-idle-time 5)
- '(semantic-lex-debug-analyzers nil)
- '(transient-mark-mode 1))
- (custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- )
- ;;********************************************************************************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement