Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. M-x package-install cmake-mode
  2.  
  3. ;; Add this code to your .emacs file to use the mode:
  4. ;;
  5. ;; (setq load-path (cons (expand-file-name "/dir/with/cmake-mode") load-path))
  6. ;; (require 'cmake-mode)
  7. ;; (setq auto-mode-alist
  8. ;; (append '(("CMakeLists\.txt\'" . cmake-mode)
  9. ;; ("\.cmake\'" . cmake-mode))
  10. ;; auto-mode-alist))
  11.  
  12. (add-to-list 'load-path "~/.emacs.d/elpa/cmake-mode-20110824/")
  13.  
  14. (setq load-path (cons (expand-file-name "~/.emacs.d/elpa/cmake-mode-20110824") load-path))
  15. (require 'cmake-mode)
  16. (setq auto-mode-alist
  17. (append '(("CMakeLists\.txt\'" . cmake-mode)
  18. ("\.cmake\'" . cmake-mode))
  19. auto-mode-alist))
  20.  
  21. (require 'package)
  22. (setq package-enable-at-startup nil)
  23. (package-initialize)
  24.  
  25. ;; init.el
  26. (add-hook 'after-init-hook (lambda () (load "<real init file>")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement