X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/b08fa2c1c27e54af7834900ee0a5ac392679b8f3..af78214bf739edac031fe183327b8361d05f72fd:/.emacs.d/init.el diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 525348d..28c1ba7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -146,10 +146,9 @@ (defalias 'yes-or-no-p #'y-or-n-p) (when (display-graphic-p) + ;; (set-frame-font "Source Code Pro-10.5:weight=medium" nil t) + ;; (set-frame-font "FreeSans" nil t) (set-fontset-font t 'arabic "Vazir")) -;; ;; (set-frame-font "Drafting Mono-14:weight=light" nil t) -;; (set-frame-font "Drafting Mono:pixelsize=16" nil t) -;; (set-face-attribute 'bold nil :weight 'semi-bold) ;;;; Elisp-level customizations @@ -316,7 +315,9 @@ (when (display-graphic-p) (with-eval-after-load 'faces (let ((grey "#e7e7e7")) - (set-face-attribute 'fixed-pitch nil :family "Source Code Pro") + (set-face-attribute 'fixed-pitch nil + :font "Source Code Pro" + :weight 'medium) (set-face-attribute 'mode-line nil :background grey :inherit 'fixed-pitch)))) @@ -374,16 +375,16 @@ For disabling the behaviour for certain buffers and/or modes." (make-local-variable 'mouse-autoselect-window) (setq mouse-autoselect-window nil)) -(defun b/move-indentation-or-beginning-of-line (arg) - "Move to the indentation or to the beginning of line." - (interactive "^p") - ;; (if (bolp) - ;; (back-to-indentation) - ;; (move-beginning-of-line arg)) - (if (= (point) - (progn (back-to-indentation) - (point))) - (move-beginning-of-line arg))) +;; (defun b/move-indentation-or-beginning-of-line (arg) +;; "Move to the indentation or to the beginning of line." +;; (interactive "^p") +;; ;; (if (bolp) +;; ;; (back-to-indentation) +;; ;; (move-beginning-of-line arg)) +;; (if (= (point) +;; (progn (back-to-indentation) +;; (point))) +;; (move-beginning-of-line arg))) (defun b/join-line-top () "Like `join-line', but join next line to the current line." @@ -437,7 +438,7 @@ Effectively a very simple light/dark theme toggle switch." ;;; General key bindings -(global-set-key (kbd "C-a") #'b/move-indentation-or-beginning-of-line) +;; (global-set-key (kbd "C-a") #'b/move-indentation-or-beginning-of-line) (global-set-key (kbd "C-c i") #'ielm) (global-set-key (kbd "C-c d") #'b/duplicate-line-or-region) (global-set-key (kbd "C-c j") #'b/join-line-top)