Skip to main content ramblings of a lost one

Posts on Emacs

  1. Journelly heatmap

    Following on from A journal in orgmode? yes Journelly! I have expertly crafted (read massively bodged) a python script to create a heatmap of locations using folium.

    It simply reads in your Journelly.org file, checks for the lat/lon lines & stores them into a pandas dataframe (I was thinking of doing more with the df) and updates the folium map object before saving the interactive HTML file.

    python code snippet start

  2. A journal in orgmode? yes Journelly!

    For those that know of its existence the combined power of emacs & org mode for everything from simple note taking to complex journal writing, website creation, literate programming and more simply makes it an indispensable tool but its very power comes from its roots which means it is desktop centric and although a lot of my usage is in an MS environment to really leverage the most from the combination it should be in linux environment but getting back to the mobile journal topic - yes there are mobile clients;

  3. Orgmode image insert on Windows 10

    My workflow relies on orgmode, currently (may change 1) all orgfiles for each project reside in a top level folder and then i create a subfolder for each project into which all data is stored (emails\images\project files etc) and the org file links to these eg;

    ~ top level folder

    • project 1 orgfile
    • project 2 orgfile
    • project_1_data
      • email_1_for_project_1
      • image_for_project_1
    • project_2_data
      • email_1_for_project_2
      • image_for_project_2

    When it comes to image capture i either launch greenshot and save everything to a temporary capture folder or launch the windows snipping tool & then choose where to save the image the issue with this workflow is that its not smooth. After i have captured the image there is another or several steps to insert the image into the main org file and hence become usuable.

  4. GPG & no usable config

    I’ve been using GPG without any dotemacs configuration & without issue or concern on Win10 machines for a long time but recently i started to recieve “no usable configuration errors” now i know its not because i’ve made changes to the dotemacs file, altered key etc but on checking log files i have updated to version 3.1.15 of Gpg4win as well as switched emacs to 28.0.50 from 27.1 but that change hasnt created the issue (switch back and it still fails) so it looks like the Gpg4win upgrade has altered something on two separate systems with identical results. To get it working again i’ve had to modify the dotemacs in a similar fashion to how i run emacs on a locked machine which software installs are not allowed and that is by specifying directly the home and program directories;

  5. emacs on MS Windows and opening files

    Working mostly in the MS Windows environment i keep notes, project records in org and these files have multiple links to documents, images, saved mails etc and most are stored with hyperlinks (though i may now be migrating to attachments) but when it comes to opening the links then it takes a little extra work. When using helm and initiating links by C-c C-l and choosing file this allows me to select files from a list and use completion support to narrow down the list of files. However the file+sys option does not, so i always chose file, used helm to help find it, insert the link and then edit it to add the +sys part.

  6. dotemacs in orgmode?

    Looking back i think this may have been the better way to start a journey with orgmode and emacs. My dotemacs file was a mess of code i didnt understand, half tried packages and poorly written comments. If you’ve spent any time searching for emacs help and on orgmode/dotemacs etc then i’m sure you will have heard of literate programming.

    There is a wealth of information on the subject for example on using python;

  7. Emacs lisp & yasnippet

    On my home machines as detailed in this post i keep a journal and used some fu to determine which machine the journal entry was written on. I also keep a daily log for work normally this consists of start time, mileage to be claimed so the snippet template resembles

    text code snippet start

  8. HTML/CSS formatted agenda for emacs batch output

    UPDATE [2021-01-03 Sun 13:30]

    After posting a reply on reddit to request for help on emacs batch mode and the agenda i realised when i migrated from the pi based server to the macmini replacement i had not re-setup batch mode myself, so following my own advice below i recreated the dotemacs added in the css export from a good working installation, altered the org-super-agenda as described here and typed in the magic code:

  9. batch agenda output via html

    Success! previously i mentioned difficulty in getting the agenda output using the command line in HTML form however now after a bit of baking in today’s glorious sunshine i figured it out. As normal i’d overlooked the obvious and discounted all the info i had reviewed.

    My old command looks like

    /usr/local/bin/emacs -Q --batch --load ~/.emacs --eval='(org-batch-agenda "c" org-agenda-files (quote ("/srv/dev-disk-by-id-usb-Seagate_Portable_NAA570VH-0-0-part1/drakx/orgfiles/")) org-agenda-span (quote week))' > /srv/dev-disk-by-id-usb-Seagate_Portable_NAA570VH-0-0-part1/drakx/orgfiles/agenda.txt

    and this is entered into the scheduled job section of the OMV server setup;

  10. emacs,orgmode,hugo + ox-hugo

    OK so i dont pretend to be an all knowing computer geek in fact just the opposite i’m aging computer enthusiast that grew up in the golden age of electronics and computers but i do have some understanding from starting out with BBC’s,Spectrums and hacking high score tables or re-programming the header so the game could run from microdrive instead of C90 tape :wink: through to TCL for aero engine data analysis and then python for a home monitoring system but my decision to start afresh, move to a new domain and use hugo + ox-hugo has had me reaching for a glass of the strong stuff and several relaxing hours getting my arse handed to me on COD!

  11. elisp + yasnippet

    I keep a journal in orgmode, ok its not updated regularly but frequently enough and i use three different devices to do so. I wanted to keep track of the device used and the location in which the entry was completed, on my phone i get round the lack of an android based emacs & orgmode by using neutrinote combined with texpand and tasker to automatically populate a text file with the necessary org heading, properties and latitude/longitude (see bottom)

  12. orgmode syntax and the agenda

    Essentially i decided (for whatever whimsical reason!) to move from the emacs diary to keeping everything in a specific org file. So previously my diary simply contained lines such as;

    elisp code snippet start

  13. information overload

    Information overload - over the years i’ve collected terabytes of data in different forms, books, cd’s, pdf’s, word documents, emails and so on. Finding that one bit of critical info is a pain, my work laptop has over 45g of standards, specifications and so on all stuff that should be referenced yet because it is often buried in subdirs or perhaps i’ve given the document i created a title which made sense at the time but months/years later means nothing i cannot find that which i need.