Advertisement
Guest User

Untitled

a guest
May 16th, 2012
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. ;;********************************************************************************************************************************
  2.  
  3.  
  4.  
  5. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6. ;;; File name: ` ~/.emacs '
  7. ;;; ---------------------
  8. ;;;
  9. ;;; If you need your own personal ~/.emacs
  10. ;;; please make a copy of this file
  11. ;;; an placein your changes and/or extension.
  12. ;;;
  13. ;;; Copyright (c) 1997-2002 SuSE Gmbh Nuernberg, Germany.
  14. ;;;
  15. ;;; Author: Werner Fink, <feedback@...> 1997,98,99,2002
  16. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  17. ;;;
  18. ;;; Test of Emacs derivates
  19.  
  20. ;; CC-mode
  21. ;;(add-hook 'c-mode-hook '(lambda ()
  22. ;;(setq ac-sources (append '(ac-source-semantic) ac-sources))
  23. ;;(local-set-key (kbd "RET") 'newline-and-indent)
  24. ;;(linum-mode t)
  25. ;;(semantic-mode t)))
  26.  
  27.  
  28. ;; CEDET
  29. (load-file "~/cedet-1.0.1/common/cedet.el")
  30. (global-ede-mode 1) ; Enable the Project management system
  31. (semantic-load-enable-excessive-code-helpers) ; Enable prototype help and smart completion
  32. (global-srecode-minor-mode 1) ; Enable template insertion menu
  33. (require 'semantic-ia)
  34. (require 'semantic-gcc)
  35. (require 'semanticdb)
  36. (semantic-add-system-include "/usr/include/OGRE" 'c++-mode)
  37. (semantic-add-system-include "/usr/include/OGRE" 'c-mode)
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. ;;ECB
  45.  
  46. (add-to-list 'load-path
  47. "~/.emacs.d/ecb-snap")
  48. (require 'ecb-autoloads)
  49.  
  50.  
  51. ;;; -----------------------
  52. (if (string-match "XEmacs\\|Lucid" emacs-version)
  53. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  54. ;;; XEmacs
  55. ;;; ------
  56. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  57. (progn
  58. (if (file-readable-p "~/.xemacs/init.el")
  59. (load "~/.xemacs/init.el" nil t))
  60. )
  61. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  62. ;;; GNU-Emacs
  63. ;;; ---------
  64. ;;; load ~/.gnu-emacs or, if not exists /etc/skel/.gnu-emacs
  65. ;;; For a description and the settings see /etc/skel/.gnu-emacs
  66. ;;; ... for your private ~/.gnu-emacs your are on your one.
  67. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  68. (if (file-readable-p "~/.gnu-emacs")
  69. (load "~/.gnu-emacs" nil t)
  70. (if (file-readable-p "/etc/skel/.gnu-emacs")
  71. (load "/etc/skel/.gnu-emacs" nil t)))
  72.  
  73. ;; Custom Settings
  74. ;; ===============
  75. ;; To avoid any trouble with the customization system of GNU emacs
  76. ;; we set the default file ~/.gnu-emacs-custom
  77.  
  78. ;;
  79. (setq x-select-enable-clipboard t)
  80. (setq-default c-basic-offset 4)
  81.  
  82. ;;
  83. ;;FULL AKC
  84. (add-to-list 'load-path "~/.emacs.d/full-ack.el")
  85. (autoload 'ack-same "full-ack.el" nil t)
  86. (autoload 'ack "full-ack.el" nil t)
  87. (autoload 'ack-find-same-file "full-ack.el" nil t)
  88. (autoload 'ack-find-file "full-ack.el" nil t)
  89.  
  90.  
  91. ;;DESKTOP
  92. (desktop-save-mode 1)
  93. (setq history-length 250)
  94. (add-to-list 'desktop-globals-to-save 'file-name-history)
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. ;;;
  105. )
  106. ;;;
  107. (custom-set-variables
  108. ;; custom-set-variables was added by Custom.
  109. ;; If you edit it by hand, you could mess it up, so be careful.
  110. ;; Your init file should contain only one such instance.
  111. ;; If there is more than one, they won't work right.
  112. '(delete-selection-mode nil)
  113. '(ecb-options-version "2.40")
  114. '(global-semantic-show-parser-state-mode t nil (semantic-util-modes))
  115. '(mark-even-if-inactive t)
  116. '(scroll-bar-mode (quote right))
  117. '(semantic-edits-verbose-flag t)
  118. '(semantic-idle-scheduler-work-idle-time 5)
  119. '(semantic-lex-debug-analyzers nil)
  120. '(transient-mark-mode 1))
  121. (custom-set-faces
  122. ;; custom-set-faces was added by Custom.
  123. ;; If you edit it by hand, you could mess it up, so be careful.
  124. ;; Your init file should contain only one such instance.
  125. ;; If there is more than one, they won't work right.
  126. )
  127.  
  128.  
  129. ;;********************************************************************************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement