Emacs 29 has a new command called yank-media that supports yanking non-plain-text media like images and HTML from other applications into Emacs.
It is only supported in modes that have registered support for it, and only on capable platforms.
yank-media allows you to copy an image from the clipboard and insert it into a buffer in a supported mode, the only mode currently support are message and html modes
I have taken the yank-media code for the html-mode and modified it to work with org mode so that it prompts you for a location to save the image from the clipboard and then insert an org file link to the image which can be viewed by toggling inline images in the org file
But the issue is yank-media cant find the registered handler in the org buffer unless i reload my emacs init.el
My elisp isnt great so i cant figure out why the registered handler isnt being found in the org buffer, its just the final piece of the puzzle that needs solving by someone with a bit more elisp knowledge like @sachactub or @SystemCrafters
if anyone can figure out this out please leave a comment,
there is no prize but you will get bragging rights
html mode file with yank media code
sgml-mode.el.gz
describe variable
ctrl-h v
yank-media--registed-handlers
yank-media--registered-handlers is a variable defined in ‘yank-media.el’.
copying-media-to-emacs
https://lars.ingebrigtsen.no/2021/11/08/copying-media-to-emacs/
emacs init.el
https://github.com/NapoleonWils0n/fedora-dotfiles/blob/master/.config/emacs/init.el#L663
emacs yank-media thread
https://lists.gnu.org/archive/html/emacs-devel/2021-11/threads.html#00654
emacs 29 news
https://github.com/emacs-mirror/emacs/blob/master/etc/NEWS.29
...
https://www.youtube.com/watch?v=kQnZTz9Qnbw
Searching for iptv m3u8 playlist using google advanced search operators
We also use lynx to dump m3u8 playlist from pastebin
# Git repo for playercorefactory.xml file and bash scripts
https://github.com/NapoleonWils0n/kodi-playercorefactory
# youtube playlist
https://www.youtube.com/playlist?list=PL7hhhG5qUoXlpmIjqv2eEBukAeJSVNsdX
...
https://www.youtube.com/watch?v=wrX4rFTe1aU
Intergrate Pulsar into your Library and send links to another machine running kodi that doesnt have pulsar installed
For example send Pulsar stream from your laptop to your Android device plugged into your TV
Pulsar: https://github.com/steeve/plugin.video.pulsar
Pulsar unoffical repo - fusion.tvaddons: http://fusion.tvaddons.ag/
external-player: https://github.com/NapoleonWils0n/kodi-playercorefactory/tree/master/docs/external-player
Pulsar install and library intergration:
http://howtomediacenter.com/en/the-complete-guide-to-pulsar-on-
kodi-part-1-installation/
http://howtomediacenter.com/en/the-complete-guide-to-pulsar-on-kodi-part-2-providers/
http://howtomediacenter.com/en/the-complete-guide-to-pulsar-on-kodi-part-3-library-integration-using-favourites/
Genesis library intergration:
http://howtomediacenter.com/en/the-complete-guide-to-genesis-on-kodi-part-1-install/
http://howtomediacenter.com/en/the-complete-guide-to-genesis-on-kodi-part-2-library-integration/
http://howtomediacenter.com/en/the-complete-guide-to-genesis-on-kodi-part-3-genesis-and-trakt/
Trakt
https://trakt.tv/
# kodi-playercorefactory git repo
https://github.com/NapoleonWils0n/kodi-playercorefactory
# Youtube channel
https://www.youtube.com/channel/UCriRR_CzOny-akXyk1R-oDQ
...
https://www.youtube.com/watch?v=M1zreqapCcU
How to use vlc as an external video player in kodi to record video streams
Kodi lets you override the built in video player and use an external video player,
by creating a text file called playercorefactory.xml
We will define ffmpeg, rtmpdump, vlc and mpv as external players in the playercorefactory.xml,
which will allow us to record video streams opened from kodi
In this video i show you foreground and background video record using kodi and vlc
Foreground recording is when you use vlc as an external video player to open a video stream from kodi,
and record the video while you watch it
Background recording is when you use vlc as an external video player to open a video stream from kodi,
and record the video but dont display it on screen
# Git repo for playercorefactory.xml file and bash scripts
https://github.com/NapoleonWils0n/kodi-playercorefactory
# youtube playlist
https://www.youtube.com/playlist?list=PL7hhhG5qUoXlpmIjqv2eEBukAeJSVNsdX
...
https://www.youtube.com/watch?v=KS1SKPl5cbQ
How to install doas the sudo replacement manually on ubuntu 20.04
or using apt on ubuntu 21.04 or pacman on arch linux
In this video i cover how to mount and unmount drives or run apt update and upgrade without a password using doas
The syntax for allowing users or groups, the nopass option to run commands without a password
How to run a command with doas, a command with arguments
or run a command and disable any arguments for that command
Also how to run as command as root and then switch to another user,
so you can run a command that requires root and then run another command that has to be run as your user like a web browser
doas doesnt have a visudo command to check your config for syntax errors so i show you a couple of ways to avoid locking your self out of doas by checking your config
As well as how to get doas working with emacs tramp and the zsh shell
doas linux install:
https://github.com/NapoleonWils0n/cerberus/blob/master/opendoas/opendoas.org
my doas.conf:
https://raw.githubusercontent.com/NapoleonWils0n/cerberus/master/opendoas/doas.conf
emacs fix for doas tramp and zsh:
https://github.com/NapoleonWils0n/ubuntu-dotfiles/blob/master/.emacs#L32
opendoas:
https://github.com/Duncaen/OpenDoas
doas man page:
https://man.openbsd.org/doas
doas.conf man page:
https://man.openbsd.org/doas.conf.5
debian doas:
https://wiki.debian.org/Doas
...
https://www.youtube.com/watch?v=b2D_5bPTKIs
fix for linux cannot open display :0 using xhost to allow access
i also covert openvpn split routes for your browser and torrent client
allow your user access
xhost +SI:localuser:"$(whoami)"
remove access
xhost -
fedora dotfiles
https://github.com/NapoleonWils0n/fedora-dotfiles
fedora root files
https://github.com/NapoleonWils0n/fedora-root
...
https://www.youtube.com/watch?v=Ji3HsYHbU_k
To override the nixos zsh default prompt you need to add the following code to your ~/.zshrc file before setting your PS1 prompt
prompt off
Note you might not be able to see the issue on the video where the prompt uses the default prompt before switching to the new version but it does happen
zshrc
https://github.com/NapoleonWils0n/nixos-dotfiles/blob/master/.zshrc
...
https://www.youtube.com/watch?v=QAiXrfuMbH4
using tcpdump, windump, wireshark and youtube-dl to download everything from uk turks playlist addon
# kodi-playercorefactory git repo
https://github.com/NapoleonWils0n/kodi-playercorefactory
# Youtube channel
https://www.youtube.com/channel/UCriRR_CzOny-akXyk1R-oDQ
...
https://www.youtube.com/watch?v=kQklpuP7htA
How to use Newsboat command line rss reader to subscribe to youtube channels or playlist rss feeds and send the links to kodi to play
I also cover how to find youtube channels and playlist rss feeds to add to newsboat
newsboat config:
https://github.com/NapoleonWils0n/ubuntu-dotfiles/tree/master/.config/newsboat
...
https://www.youtube.com/watch?v=VuMHH7aC50g