mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 03:33:03 +03:00
feat(emacs): facemenu for google translate, line numbers back to visual
This commit is contained in:
parent
57fbd4ea49
commit
99d53def65
2 changed files with 13 additions and 5 deletions
|
|
@ -586,7 +586,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(global-display-line-numbers-mode 1)
|
||||
(line-number-mode nil)
|
||||
(setq display-line-numbers-type 'relative)
|
||||
(setq display-line-numbers-type 'visual)
|
||||
(column-number-mode)
|
||||
|
||||
(show-paren-mode 1)
|
||||
|
|
@ -2310,6 +2310,7 @@ parent."
|
|||
:custom
|
||||
(google-translate-backend-method 'curl)
|
||||
:config
|
||||
(require 'facemenu)
|
||||
(defun google-translate--search-tkk ()
|
||||
"Search TKK."
|
||||
(list 430675 2721866130))
|
||||
|
|
@ -2358,6 +2359,6 @@ parent."
|
|||
|
||||
(use-package elcord
|
||||
:straight t
|
||||
:if (string= (system-name) "pdsk")
|
||||
:if (and (string= (system-name) "pdsk") (not my/slow-ssh))
|
||||
:config
|
||||
(elcord-mode))
|
||||
|
|
|
|||
13
Emacs.org
13
Emacs.org
|
|
@ -1161,11 +1161,15 @@ Font
|
|||
(set-frame-font "JetBrainsMono Nerd Font 10" nil t)
|
||||
#+end_src
|
||||
|
||||
Line numbers
|
||||
Line numbers. There seems to be a catch with the relative number setting:
|
||||
- =visual= doesn't take folding into account, but also doesn't take wrapped lines into account (makes multiple numbers for a single wrapped line)
|
||||
- =relative= makes a single number for a wrapped line, but counts folded lines.
|
||||
|
||||
=visual= option seems to be less of a problem in most cases.
|
||||
#+begin_src emacs-lisp
|
||||
(global-display-line-numbers-mode 1)
|
||||
(line-number-mode nil)
|
||||
(setq display-line-numbers-type 'relative)
|
||||
(setq display-line-numbers-type 'visual)
|
||||
(column-number-mode)
|
||||
#+end_src
|
||||
|
||||
|
|
@ -1750,6 +1754,8 @@ Kernelspecs by default are hashed, so even switching Anaconda environments doesn
|
|||
(jupyter-available-kernelspecs t))
|
||||
#+end_src
|
||||
*** Hy
|
||||
| Note | Description |
|
||||
| TODO | Make it work without global Hy |
|
||||
#+begin_src emacs-lisp :noweb-ref org-lang-setup
|
||||
(use-package ob-hy
|
||||
:straight t)
|
||||
|
|
@ -3466,6 +3472,7 @@ References:
|
|||
:custom
|
||||
(google-translate-backend-method 'curl)
|
||||
:config
|
||||
(require 'facemenu)
|
||||
(defun google-translate--search-tkk ()
|
||||
"Search TKK."
|
||||
(list 430675 2721866130))
|
||||
|
|
@ -3528,7 +3535,7 @@ Shows which file is being edited in Emacs.
|
|||
#+begin_src emacs-lisp
|
||||
(use-package elcord
|
||||
:straight t
|
||||
:if (string= (system-name) "pdsk")
|
||||
:if (and (string= (system-name) "pdsk") (not my/slow-ssh))
|
||||
:config
|
||||
(elcord-mode))
|
||||
#+end_src
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue