Browse Source

Updated linux config

Simon Watson 3 năm trước cách đây
mục cha
commit
d4a324d2c9
2 tập tin đã thay đổi với 25 bổ sung1 xóa
  1. 13 1
      emacs/.emacs-all
  2. 12 0
      emacs/linux-load/customs.el

+ 13 - 1
emacs/.emacs-all

@@ -124,6 +124,7 @@
 (global-set-key (kbd "<home>") 'beginning-of-line)
 (global-set-key (kbd "<end>") 'end-of-line)
 
+;; Custom functions
 (defun reload-dot-emacs ()
   (interactive)
   (load-file (file-truename "~/.emacs")))
@@ -147,6 +148,11 @@
 (display-time-mode t)
 (display-line-numbers-mode t)
 
+;; Perl Config
+(setq
+ perl-indent-parens-as-block 0
+ perl-indent-level 8)
+
 ;; Load for macOS
 ;;; Slime/etc
 (if (eq system-type 'darwin)
@@ -180,7 +186,13 @@
       (nano-dark)))
 
 ;; Load for GUI Linux
-
+(if (eq system-type 'gnu/linux)
+    (if (display-graphic-p)
+	(progn
+	  (load "~/Repos/dotfiles/emacs/linux-load/customs.el")
+	  (load-theme 'nano t)
+	  (nano-dark))))
+      
 ;; Load for Term
 (unless (display-graphic-p)
   (xterm-mouse-mode t))

+ 12 - 0
emacs/linux-load/customs.el

@@ -0,0 +1,12 @@
+(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.
+ '(display-time-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 "Gohu GohuFont" :foundry "UNKN" :slant normal :weight normal :height 83 :width normal)))))