diff options
Diffstat (limited to 'emacs/init.el')
-rw-r--r-- | emacs/init.el | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el new file mode 100644 index 0000000..1a98a14 --- /dev/null +++ b/emacs/init.el @@ -0,0 +1,46 @@ +;; Added by Package.el. This must come before configurations of +;; installed packages. Don't delete this line. If you don't want it, +;; just comment it out by adding a semicolon to the start of the line. +;; You may delete these explanatory comments. +(package-initialize) + +(put 'upcase-region 'disabled nil) +(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. + '(inhibit-startup-screen t)) + +(setq display-time-string-forms + '((propertize (concat " " 24-hours ":" minutes " ") + ))) + +(column-number-mode) +(display-time-mode) + +; (set-default-font "-misc-fixed-medium-r-normal--13-*-75-75-c-70-iso8859-1") +;; TODO set-default-font stopped working + +; (blink-cursor-mode 0) +; (setq visible-bell t) +; (scroll-bar-mode 0) +; (tool-bar-mode 0) +; (menu-bar-mode 0) + +;(custom-set-faces +; '(default ((t (:background "#101064" :foreground "#FFFFFF")))) +; '(fringe ((t (:background "#101064"))))) + +(add-hook 'after-change-major-mode-hook (lambda() (electric-indent-mode -1))) +(add-hook 'c-mode-hook (lambda () (electric-indent-local-mode))) + +(defvaralias 'c-basic-offset 'tab-width) +(global-set-key (kbd "DEL") 'backward-delete-char) +(setq c-backspace-function 'backward-delete-char) + +(setq vc-follow-symlinks nil) +(setq vc-handled-backends nil) + +(add-to-list 'auto-mode-alist '("/PKGBUILD$" . shell-script-mode)) +(add-to-list 'auto-mode-alist '("/APKBUILD$" . shell-script-mode)) |