More work configuration
This commit is contained in:
parent
01234f7b5d
commit
5572b3e4b6
2 changed files with 23 additions and 11 deletions
28
emacs/.emacs
28
emacs/.emacs
|
@ -12,7 +12,6 @@
|
||||||
;; Set frame title
|
;; Set frame title
|
||||||
(setq frame-title-format "[%m] %f")
|
(setq frame-title-format "[%m] %f")
|
||||||
|
|
||||||
(setq-default indent-tabs-mode nil)
|
|
||||||
|
|
||||||
;; Default frame size
|
;; Default frame size
|
||||||
(setq initial-frame-alist
|
(setq initial-frame-alist
|
||||||
|
@ -45,29 +44,32 @@
|
||||||
'(ansi-color-names-vector
|
'(ansi-color-names-vector
|
||||||
["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
|
["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
|
||||||
'(blink-cursor-mode nil)
|
'(blink-cursor-mode nil)
|
||||||
|
'(cperl-close-paren-offset -2)
|
||||||
|
'(cperl-electric-parens nil)
|
||||||
|
'(cperl-indent-level 2)
|
||||||
|
'(cperl-indent-parens-as-block t)
|
||||||
'(custom-enabled-themes (quote (heroku)))
|
'(custom-enabled-themes (quote (heroku)))
|
||||||
'(custom-safe-themes
|
'(custom-safe-themes
|
||||||
(quote
|
(quote
|
||||||
("4f2ede02b3324c2f788f4e0bad77f7ebc1874eff7971d2a2c9b9724a50fb3f65" default)))
|
("4f2ede02b3324c2f788f4e0bad77f7ebc1874eff7971d2a2c9b9724a50fb3f65" default)))
|
||||||
'(global-evil-surround-mode t)
|
'(global-evil-surround-mode t)
|
||||||
|
'(indent-tabs-mode nil)
|
||||||
'(inhibit-startup-screen t)
|
'(inhibit-startup-screen t)
|
||||||
'(menu-bar-mode nil)
|
'(menu-bar-mode nil)
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
(quote
|
(quote
|
||||||
(terminal-here shell-pop swiper neotree centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil)))
|
(terminal-here shell-pop swiper neotree centered-cursor-mode ivy avy heroku-theme auto-complete use-package yasnippet evil-surround org evil-magit magit makefile-runner evil)))
|
||||||
'(scroll-bar-mode nil)
|
'(scroll-bar-mode nil)
|
||||||
'(shell-pop-shell-type
|
'(shell-pop-shell-type
|
||||||
(quote
|
(quote
|
||||||
("ansi-term" "*ansi-term*"
|
("ansi-term" "*ansi-term*"
|
||||||
(lambda nil
|
(lambda nil
|
||||||
(ansi-term shell-pop-term-shell)))))
|
(ansi-term shell-pop-term-shell)))))
|
||||||
'(shell-pop-window-position "top")
|
'(shell-pop-window-position "top")
|
||||||
'(shell-pop-window-size 20)
|
'(shell-pop-window-size 20)
|
||||||
'(tool-bar-mode nil)
|
'(tool-bar-mode nil)
|
||||||
'(cperl-indent-level 2)
|
'(dired-listing-switches "-lh")
|
||||||
'(cperl-close-paren-offset -2)
|
'(ac-ignore-case nil))
|
||||||
'(cperl-indent-parens-as-block t)
|
|
||||||
'(cperl-electric-parens nil))
|
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
@ -248,9 +250,10 @@
|
||||||
;; (setq-default shell-pop-term-shell my/default-shell))
|
;; (setq-default shell-pop-term-shell my/default-shell))
|
||||||
|
|
||||||
;; tabbing (doesn't really work yet)
|
;; tabbing (doesn't really work yet)
|
||||||
(setq-default indent-tabs-mode t)
|
|
||||||
(setq-default tab-width 4)
|
(setq-default tab-width 4)
|
||||||
(setq-default LateX-indent-level 4)
|
(setq-default LateX-indent-level 4)
|
||||||
|
(add-hook 'latex-mode-hook (progn
|
||||||
|
(setq indent-tabs-mode t)))
|
||||||
|
|
||||||
;; Activate line numbers
|
;; Activate line numbers
|
||||||
(global-linum-mode t)
|
(global-linum-mode t)
|
||||||
|
@ -294,6 +297,9 @@
|
||||||
(global-set-key (kbd "<M-left>") 'windmove-left)
|
(global-set-key (kbd "<M-left>") 'windmove-left)
|
||||||
(global-set-key (kbd "<M-right>") 'windmove-right)
|
(global-set-key (kbd "<M-right>") 'windmove-right)
|
||||||
|
|
||||||
|
; Whitespace mode toggle
|
||||||
|
(global-set-key (kbd "C-c C-l") 'whitespace-mode)
|
||||||
|
|
||||||
(defun cycle-window ()
|
(defun cycle-window ()
|
||||||
"cycles windows"
|
"cycles windows"
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
6
emacs/.emacs.d/snippets/cperl-mode/Shebang Perl
Normal file
6
emacs/.emacs.d/snippets/cperl-mode/Shebang Perl
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Shebang Perl
|
||||||
|
# key: #!
|
||||||
|
# --
|
||||||
|
#!/usr/bin/perl
|
||||||
|
$0
|
Loading…
Reference in a new issue