add key combination for zooming in emacs
This commit is contained in:
parent
155ecc702e
commit
1b7e9121b6
24
emacs/.emacs
24
emacs/.emacs
@ -2,14 +2,38 @@
|
||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
|
||||
(package-initialize)
|
||||
|
||||
|
||||
(setq-default word-wrap t)
|
||||
|
||||
|
||||
; Display current column
|
||||
;; https://www.gnu.org/software/emacs/manual/html_node/efaq/Displaying-the-current-line-or-column.html
|
||||
(setq column-number-mode t)
|
||||
|
||||
|
||||
; Set default encoding as UTF-8
|
||||
(set-terminal-coding-system 'utf-8)
|
||||
|
||||
|
||||
; Don't show welcome screen every time
|
||||
(setq inhibit-startup-screen t)
|
||||
|
||||
|
||||
; Scroll buffer without moving cursor
|
||||
;; https://www.emacswiki.org/emacs/Scrolling#h5o-2
|
||||
(defun gcm-scroll-down ()
|
||||
(interactive)
|
||||
(scroll-up 1))
|
||||
|
||||
(defun gcm-scroll-up ()
|
||||
(interactive)
|
||||
(scroll-down 1))
|
||||
|
||||
(global-set-key [(control down)] 'gcm-scroll-down)
|
||||
(global-set-key [(control up)] 'gcm-scroll-up)
|
||||
|
||||
|
||||
; Zooming
|
||||
; https://stackoverflow.com/questions/5533110/emacs-zoom-in-zoom-out
|
||||
(global-set-key [C-mouse-4] 'text-scale-increase) ; scroll up
|
||||
(global-set-key [C-mouse-5] 'text-scale-decrease) ; scroll down
|
||||
|
@ -1,2 +1,2 @@
|
||||
`.vimrc`: Located at `~/.vim/`.
|
||||
`digraph_defs.vim`: Located at `~/.vim/`.
|
||||
- `.vimrc`: Located at `~/.vim/`.
|
||||
- `digraph_defs.vim`: Located at `~/.vim/`.
|
||||
|
@ -2,9 +2,11 @@
|
||||
" https://en.wikipedia.org/wiki/Mathematical_operators_and_symbols_in_Unicode
|
||||
" https://github.com/joom/latex-unicoder.vim/blob/master/autoload/unicoder.vim
|
||||
|
||||
|
||||
"" Set theory
|
||||
digr )- 8713 " ∉
|
||||
|
||||
|
||||
"" Super-script characters
|
||||
" Note: q, C, F, Q, S, X, Y, Z haven't got super-script version.
|
||||
digr ^0 8304 " ⁰ (duplicate of 0S)
|
||||
@ -17,8 +19,6 @@ digr ^6 8310 " ⁶ (duplicate of 6S)
|
||||
digr ^7 8311 " ⁷ (duplicate of 7S)
|
||||
digr ^8 8312 " ⁸ (duplicate of 8S)
|
||||
digr ^9 8313 " ⁹ (duplicate of 9S)
|
||||
digr ^+ 8314 " ⁺ (duplicate of +S)
|
||||
digr ^- 8315 " ⁻ (duplicate of -S)
|
||||
digr ^a 7491 " ᵃ
|
||||
digr ^b 7495 " ᵇ
|
||||
digr ^c 7580 " ᶜ
|
||||
@ -64,6 +64,12 @@ digr ^U 7489 " ᵁ
|
||||
digr ^V 11389 " ⱽ
|
||||
digr ^W 7490 " ᵂ
|
||||
|
||||
digr ^+ 8314 " ⁺ (duplicate of +S)
|
||||
digr ^- 8315 " ⁻ (duplicate of -S)
|
||||
digr ^= 8316 " ⁼
|
||||
digr ^( 8317 " ⁽
|
||||
digr ^) 8318 " ⁾
|
||||
|
||||
|
||||
"" Sub-script characters
|
||||
" Note: b, c, d, f, g, q, w, y, z haven't got sub-script version.
|
||||
@ -78,8 +84,6 @@ digr _6 8326 " ₆ (duplicate of 6s)
|
||||
digr _7 8327 " ₇ (duplicate of 7s)
|
||||
digr _8 8328 " ₈ (duplicate of 8s)
|
||||
digr _9 8329 " ₉ (duplicate of 9s)
|
||||
digr _+ 8330 " ₊ (duplicate of +s)
|
||||
digr _- 8331 " ₋ (duplicate of -s)
|
||||
digr _a 8336 " ₐ
|
||||
digr _e 8337 " ₑ
|
||||
digr _h 8341 " ₕ
|
||||
@ -98,6 +102,12 @@ digr _u 7524 " ᵤ
|
||||
digr _v 7525 " ᵥ
|
||||
digr _x 8339 " ₓ
|
||||
|
||||
digr _+ 8330 " ₊ (duplicate of +s)
|
||||
digr _- 8331 " ₋ (duplicate of -s)
|
||||
digr _= 8332 " ₌
|
||||
digr _( 8333 " ₍
|
||||
digr _) 8334 " ₎
|
||||
|
||||
|
||||
"" Italic letters (resemble italics syntax in emacs org-mode)
|
||||
digr /A 119860 " 𝐴
|
||||
@ -162,14 +172,16 @@ digr CC 8450 " ℂ: Set of complex numbers (overriding ~T: Cancel character)
|
||||
digr QQ 8474 " ℚ: Set of rational numbers
|
||||
digr BB 120121 " 𝔹: Set of Booleans (overriding ¦)
|
||||
|
||||
|
||||
"" Constants
|
||||
digr ee 8495 " ℯ: Euler's number ≅ 2.71828
|
||||
|
||||
digr ph 8501 " ℵ : Aleph number (in addition to א (A+))
|
||||
|
||||
|
||||
"" Fancy letters
|
||||
digr el 8467 " ℓ
|
||||
|
||||
|
||||
"" Proof theory stuff
|
||||
digr TN 8708 " ∄ (Since ∃ is TE)
|
||||
digr n< 8602 " ↚ (Since ← is <-)
|
||||
@ -211,6 +223,7 @@ digr ~~ 822 " strikethrough text overlay
|
||||
"" With grave
|
||||
" digr a` " à
|
||||
|
||||
|
||||
"" With tilde
|
||||
digr A~ 195 " Ã (duplicate of 'A?')
|
||||
digr E~ 7868 " Ẽ (duplicate of 'E?')
|
||||
@ -230,7 +243,6 @@ digr v~ 7805 " ṽ (duplicate of 'v?')
|
||||
digr y~ 7929 " ỹ (duplicate of 'y?')
|
||||
|
||||
|
||||
|
||||
"" Matrix brackets
|
||||
|
||||
"lbrackuend ⎡
|
||||
|
Loading…
Reference in New Issue
Block a user