Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (add-to-list 'load-path "~/.emacs.d/el")
- (require 'xcscope)
- (require 'cython-mode)
- (define-key global-map "\M-*" 'pop-tag-mark)
- (global-set-key (kbd "C-c <left>") 'windmove-left)
- (global-set-key (kbd "C-c <down>") 'windmove-down)
- (global-set-key (kbd "C-c <up>") 'windmove-up)
- (global-set-key (kbd "C-c <right>") 'windmove-right)
- (setq windmove-wrap-around t)
- (global-set-key (kbd "M-SPC") 'set-mark-command)
- (setq-default comment-style 'multi-line)
- (setq comment-style 'extra-line)
- (setq auto-mode-alist
- (append
- '(("\\.c$" . c-mode))
- '(("\\.h$" . c-mode))
- '(("\\.cpp$" . c++-mode))
- '(("\\.cxx$" . c++-mode))
- '(("\\.cu$". c++-mode))
- '(("\\.F$". fortran-mode))
- '(("\\.cuf$". f90-mode))
- '(("\\.F90$". f90-mode)) auto-mode-alist))
- (setq require-final-newline t)
- ;(setq c-auto-newline t)
- ;;(setq scroll-step 1)
- (setq scroll-conservatively 35
- scroll-margin 0
- scroll-step 1)
- ;(require 'vimpulse)
- (add-hook 'c-mode-hook
- '(lambda ()
- (c-set-style "linux")
- (c-set-offset 'inline-open '0)
- ))
- (add-hook 'c++-mode-hook
- '(lambda ()
- (c-set-style "stroustrup")
- (c-set-offset 'inline-open '0)
- ))
- (defun linux-c-mode ()
- "C mode with adjusted defaults for use with the Linux kernel."
- (interactive)
- (c-mode)
- (setq c-indent-level 8)
- (setq c-brace-imaginary-offset 0)
- (setq c-brace-offset -8)
- (setq c-argdecl-indent 8)
- (setq c-label-offset -8)
- (setq c-continued-statement-offset 8)
- (setq indent-tabs-mode nil)
- (setq tab-width 8))
Add Comment
Please, Sign In to add comment