Tried to fix standalone emoji picker
This commit is contained in:
parent
f35fb1bfb6
commit
fdd0b3dbf9
1 changed files with 18 additions and 5 deletions
21
config.org
21
config.org
|
|
@ -11,6 +11,7 @@
|
||||||
- [[#startup-time][Startup Time]]
|
- [[#startup-time][Startup Time]]
|
||||||
- [[#support-functions][Support functions]]
|
- [[#support-functions][Support functions]]
|
||||||
- [[#emacs-function-launcher][Emacs function launcher]]
|
- [[#emacs-function-launcher][Emacs function launcher]]
|
||||||
|
- [[#copy-to-clipboard][Copy to clipboard]]
|
||||||
- [[#app-launcher][App Launcher]]
|
- [[#app-launcher][App Launcher]]
|
||||||
- [[#standalone-run][Standalone run]]
|
- [[#standalone-run][Standalone run]]
|
||||||
- [[#backup-files-tilda-files][Backup files (tilda files)]]
|
- [[#backup-files-tilda-files][Backup files (tilda files)]]
|
||||||
|
|
@ -20,7 +21,7 @@
|
||||||
- [[#dired-file-manager][DIRED (File manager)]]
|
- [[#dired-file-manager][DIRED (File manager)]]
|
||||||
- [[#ediff][EDIFF]]
|
- [[#ediff][EDIFF]]
|
||||||
- [[#emoji][Emoji]]
|
- [[#emoji][Emoji]]
|
||||||
- [[#copy-to-clipboard][Copy to clipboard]]
|
- [[#copy-to-clipboard-1][Copy to clipboard]]
|
||||||
- [[#standalone-emoji-picker][Standalone emoji picker]]
|
- [[#standalone-emoji-picker][Standalone emoji picker]]
|
||||||
- [[#flycheck][FLYCHECK]]
|
- [[#flycheck][FLYCHECK]]
|
||||||
- [[#fonts][Fonts]]
|
- [[#fonts][Fonts]]
|
||||||
|
|
@ -231,6 +232,16 @@ Launches emacs function as a window
|
||||||
(funcall func)
|
(funcall func)
|
||||||
(delete-frame))))
|
(delete-frame))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** Copy to clipboard
|
||||||
|
Copies to both kill ring and system clipboard
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
;;(setq select-enable-primary t)
|
||||||
|
(defun kylekrein/copy-to-clipboard (text)
|
||||||
|
(with-temp-buffer
|
||||||
|
(insert text)
|
||||||
|
(copy-region-as-kill (point-min) (point-max))
|
||||||
|
(clipboard-kill-region (point-min) (point-max))))
|
||||||
|
#+end_src
|
||||||
* App Launcher
|
* App Launcher
|
||||||
This code creates a menu to launch linux apps, that have Desktop entry.
|
This code creates a menu to launch linux apps, that have Desktop entry.
|
||||||
Code was taken from [[https://github.com/SebastienWae/app-launcher/blob/main/app-launcher.el][this awesome repo]]
|
Code was taken from [[https://github.com/SebastienWae/app-launcher/blob/main/app-launcher.el][this awesome repo]]
|
||||||
|
|
@ -501,8 +512,8 @@ This package implements hiding or abbreviation of the modeline displays (lighter
|
||||||
;;(let ((emoji (emoji--read-emoji))) ;;works without external package, but not so pretty
|
;;(let ((emoji (emoji--read-emoji))) ;;works without external package, but not so pretty
|
||||||
(let ((emoji (emojify-completing-read "Copy Emoji: ")))
|
(let ((emoji (emojify-completing-read "Copy Emoji: ")))
|
||||||
(when emoji
|
(when emoji
|
||||||
(kill-new emoji)
|
(kylekrein/copy-to-clipboard emoji)
|
||||||
(message "Copied: %s" emoji))))
|
(message "Copied: %s" (current-kill 0 t)))))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Standalone emoji picker
|
** Standalone emoji picker
|
||||||
To use it, create a global keyboard shortcut with the following code
|
To use it, create a global keyboard shortcut with the following code
|
||||||
|
|
@ -510,7 +521,8 @@ To use it, create a global keyboard shortcut with the following code
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defun emacs-run-emoji-picker ()
|
(defun emacs-run-emoji-picker ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(emacs-run-launcher 'kylekrein/copy-emoji-to-clipboard))
|
(emacs-run-launcher (lambda () (progn (kylekrein/copy-emoji-to-clipboard)
|
||||||
|
((sleep-for 60))))))
|
||||||
#+end_src
|
#+end_src
|
||||||
* FLYCHECK
|
* FLYCHECK
|
||||||
Install luacheck from your Linux distro’s repositories for flycheck to work correctly with lua files. Install python-pylint for flycheck to work with python files. Haskell works with flycheck as long as haskell-ghc or haskell-stack-ghc is installed. For more information on language support for flycheck, [[https://www.flycheck.org/en/latest/languages.html][read this]].
|
Install luacheck from your Linux distro’s repositories for flycheck to work correctly with lua files. Install python-pylint for flycheck to work with python files. Haskell works with flycheck as long as haskell-ghc or haskell-stack-ghc is installed. For more information on language support for flycheck, [[https://www.flycheck.org/en/latest/languages.html][read this]].
|
||||||
|
|
@ -586,6 +598,7 @@ The following settings are simple modes that are enabled (or disabled) so that E
|
||||||
(setq use-file-dialog nil) ;; No file dialog
|
(setq use-file-dialog nil) ;; No file dialog
|
||||||
(setq use-dialog-box nil) ;; No dialog box
|
(setq use-dialog-box nil) ;; No dialog box
|
||||||
(setq pop-up-windows nil) ;; No popup windows
|
(setq pop-up-windows nil) ;; No popup windows
|
||||||
|
(setq save-interprogram-paste-before-kill t)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Battery info
|
** Battery info
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue