;;; (require 'magit) (require 'auto-complete) ;; auto-complete config (ac-config-default) ;; keystrokes (global-set-key (kbd "C-x g") 'magit-status) (global-set-key (kbd "") 'beginning-of-buffer) (global-set-key (kbd "") 'end-of-buffer) (global-set-key (kbd "C-x C-g") 'gdb-many-windows) (c-add-style "my-style" '("stroustrup" (indent-tabs-mode . nil) ; use spaces rather than tabs (c-basic-offset . 4) (c-hanging-colons-alist . ((case-label . 4))) (c-offsets-alist . ((inline-open . 0) ; custom indentation rules (brace-list-open . 0) (case-label . 4) (statement-case-open . +))))) (defun my-c++-mode-hook () (c-set-style "my-style") (auto-fill-mode) (c-toggle-auto-hungry-state 0) (add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode)) ) (add-hook 'c++-mode-hook 'my-c++-mode-hook) (setq-default c-basic-offset 4) (setq-default indent-tabs-mode nil) (setq ediff-window-setup-function #'ediff-setup-windows-plain) (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. '(column-number-mode t)) (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. '(default ((t (:family "Source Code Pro" :foundry "ADBO" :slant normal :weight normal :height 121 :width normal)))))