proto/org
2019-01-29 16:10:07 -08:00
..
_proto.org revise dir structure ideas 2019-01-29 16:10:07 -08:00
git.org restructured directory 2019-01-26 15:40:07 -08:00
go.org restructured directory 2019-01-26 15:40:07 -08:00
intro.org experimenting with breaking _ into three separate files with a scipt 2019-01-28 05:26:25 -08:00
org-export-headlines-txt.el experimenting with breaking _ into three separate files with a scipt 2019-01-28 05:26:25 -08:00
projex_demo.org restructured directory 2019-01-26 15:40:07 -08:00
README.org experimenting with breaking _ into three separate files with a scipt 2019-01-28 05:26:25 -08:00
README.org_archive restructured directory 2019-01-26 15:40:07 -08:00
test.org restructured directory 2019-01-26 15:40:07 -08:00
TODOS.org experimenting with breaking _ into three separate files with a scipt 2019-01-28 05:26:25 -08:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#    -*- mode: org -*-


Archived entries from file /home/notnull/projex/proto/_proto.org


* DONE notnull will test emacs howto-from-scratch tutorial 
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-26 Sat 07:48
:ARCHIVE_FILE: ~/projex/proto/_proto.org
:ARCHIVE_OLPATH: proto/TODOS
:ARCHIVE_CATEGORY: _proto
:ARCHIVE_TODO: DONE
:END:

* DONE enable w3m on emacs 
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-26 Sat 07:48
:ARCHIVE_FILE: ~/projex/proto/_proto.org
:ARCHIVE_OLPATH: proto/TODOS
:ARCHIVE_CATEGORY: _proto
:ARCHIVE_TODO: DONE
:END:
** w3m (TLDR?) 
https://www.emacswiki.org/emacs/emacs-w3m
^ I am interestd in using w3m so we can keep it consistent outside of emacs, but I'll start with getting w3 to work maybe[strike that]. (emacs' standard browser is called eww, RMS really has a way with naming things with awful names)

*** how to install 

- add melpa to packages (not melpa-stable) 
  (require 'package)
  (add-to-list 'package-archives
    '("melpa" . "https://melpa.org/packages/") t)
   (package-initialize)
- M-x package-refresh-contents
- M-x package-install <enter> w3m <enter> 
*** random notes 


I added the melpa repo to .emacs and that provided several more packages, but not the one listed above. 

I tried to set the customize variable to emacs w3, still got the error that there's no such file. 

sorry :)

no worries! It's helpful to carriage return when you're done. :P 

tbh, I rly doubt all that is necessary. I always get really skeptical of instructions that requre lots of crazy commands... emacs has a strange installation procedure and I've gotten this to work before (on another computer) but I'll keep researching.

Question is why is w3m found by emacs on the other system and what's wrong here? 

which other system? 

> I've gotten this to work before (on another computer)

cool, keep on it!
** option with config foo: https://www.emacswiki.org/emacs/BrowseUrl#toc4
In order to fix it, you must run w3m as a shell command in order to capture the output. Here is how:

In your ~/.emacs:

    (if window-system
        (setq browse-url-browser-function 'browse-url-generic
              browse-url-generic-program "web-browser")
      (setq browse-url-browser-function 'my-browse))

    (defun my-browse (url &rest ignore)
      "Browse URL using w3m."
      (interactive "sURL: ")
      (shell-command (concat "w3m " url))
      (pop-to-buffer "*Shell Command Output*")
      (setq truncate-lines t))

In your ~/bin/web-browser (a shell script):

    #! /bin/bash

    if [ -z "$1" ]; then
        URL="-B"
    else
        URL=$1
    fi

    if [ -z "$DISPLAY" ]; then
        w3m $URL
    else
        xterm -name web-browser -bg "#304020" -fg "navajo white" -e w3m $URL
    fi

Note that now you can define `web-browser %s & as an external browser in w3m, such that  in X  you can spawn more windows.

Note also that if you want to run w3m interactively when it runs within Emacs (in the example given that happens only when calling browse-url within Emacs on the console), then you need emacs-w3m.

** w3 (no, too old)  
we decided not to go with w3 lol 

> error in process filter: w3-draw-tree: Symbol's value as variable is void: w3--args
> process filter: Symbol's value as variable is void: w3--args
what does that mean?
https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-01/msg00248.html
> Still, doesn't seem actively maintained, based on
> https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-01/msg00326.html

According to the above url:
The package was last developed 8.5 years ago.
It was added to elpa.gnu.org 3 years ago, with 4 commits.
The error you are seeing comes from one of those commits ("try to fix
compiler warnings"). "M-x w3" has the same error. So I can only
assume this package has not been tested or used by anyone since it was
added to elpa.gnu.org.
So I have to wonder what the value of having it there is.

I suggest you use M-x eww instead, and that if no-one wants to maintain
w3 it be removed from elpa.gnu.org.

-> how to disable elpa?

why would we? elpa is just a repository for emacs packages. melpa is another one... so we can remove w3, but what I don't understand is, according to https://www.emacswiki.org/emacs/emacs-w3m, It is best to download from ...official third-party mirror such as exist on MELPA or github (https://github.com/emacsorphanage/w3m.git).
https://git.savannah.gnu.org/cgit/w3.git/ 11y :D lol 


this is a lisp syntax thing, it's like the variable was undefined. we could do a backtrace and run the command again and it would give al linfo but it's in lisp, dunno if you know any lisp...
yes, that sounds fun.
i know it has a lot of brackets :)
trying to remember how... take your time, i love watching other's work.

I really hate 99% of documentation. It should not be this hard to google search and find instructions on how to enable this... 


* DONE write git workflow (see section below w/ questions) 
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-26 Sat 07:50
:ARCHIVE_FILE: ~/projex/proto/_proto.org
:ARCHIVE_OLPATH: proto/TODOS
:ARCHIVE_CATEGORY: _proto
:ARCHIVE_TODO: DONE
:END:
we finally got gogs working :)