Guest User

custom.el

a guest
Sep 19th, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. ;;; To associate *.h files with c++ mode use the following line
  2. (add-to-list 'auto-mode-alist '("\\.h$" . c++-mode))
  3. (add-to-list 'auto-mode-alist '("\\.cu$" . c++-mode))
  4. (add-to-list 'auto-mode-alist '("\\.code$" . c++-mode))
  5. (add-to-list 'auto-mode-alist '("\\.glsl$" . c++-mode))
  6. (global-set-key 'f2 'compile)
  7.  
  8. (custom-set-variables
  9. '(c-basic-offset 4)
  10. '(column-number-mode t)
  11. '(font-lock-mode t nil (font-lock))
  12. '(indent-tabs-mode nil)
  13. '(line-number-mode t)
  14. '(truncate-lines t))
  15. (custom-set-faces
  16. '(default ((t (:background "snow2" :size "11pt" :family "Fixed"))) t)
  17. '(bg:snow2 ((t (:foreground "light gray" :background "light gray"))) t))
  18. (mwheel-install)
  19.  
  20. (define-key global-map "\M->" 'indent-region)
  21. (define-key global-map "\M-s" 'font-lock-mode)
  22.  
  23. ;(custom-set-faces
  24. ; '(default ((t (:background "snow2" :size "10pt" :family "Courier"))) t))
  25.  
  26. (setq load-path
  27. (append (list nil "/home/jody"
  28. "/home/jody/.xemacs"
  29. "~/emacs")
  30. load-path))
  31.  
Advertisement
Add Comment
Please, Sign In to add comment