logs archiveIRC Archive / Freenode / #emacs / 2015 / September / 16 / 1
Hastouki
lhx: will that work with .emacs.d since a directory?
Sketch
i would expect so, you just make a .emacs.d dir in your git repo
aindilis`
Hi, for some reason, with debian packaged Emacs 24.4.1 (and I just tried upgrading), even when I mv ~/.emacs and ~/.bashrc, I don't get color ls output
in shell-mode
I have the (setq comint-output-filter-functions '(ansi-color-process-output comint-postoutput-scroll-to-bottom comint-watch-for-password-prompt))
and the -on turned on
but I get color with uxterm
any ideas?
even when I run `ls --color=force`
escondida
aindilis`: It's --color=always, not --color=force
aidalgol
rudybot: seen wgreenhouse
rudybot
aidalgol: wgreenhouse was seen in #emacs thirty-two minutes ago, saying "I don't think emacs-devel does lots of intentional hardcoding, except for silliness like `inhibit-startup-screen'", and then wgreenhouse was seen in #emacs thirty-two minutes ago, saying "but there's lots of old code with fully specified paths rather than paths concated of variables"
aidalgol
(Action) tentatively prods wgreenhouse with a long stick.
aindilis`
escondida: still no luck
Sketch
Valid arguments are: - always, yes, force
         

lhx
Hastouki: symlinks work with directories in linux and bsd
Sketch
M-x shell ... ls --color=force does give me color (emacs 24.3)
i don't usually use M-x shell, so i don't have any troubleshooting suggestions beyond that it apparently should work ;)
(my first thought was wondering if it supported color from shell commands at all)
Hastouki
lhx: yep, just curious if this dotfiles business works with directories
Sketch
symlinks work just as well on directories as on files
Fuco
as good as gnu global is its CLI sure is terrible
escondida
Sketch: Ah, is this not ls(1)?
didi
This I didn't expect: in org, a #+BEGIN_SRC gnuplot snippet can plot a graph to a file and the exported pdf will contain only the graph. Cool.
aindilis`
okay my LS_COLORS or whatever was empty - I fixed it by changing the TERM= to TERM=ansi (although I'll have to search around for the correct term to use, dumb is not listed in `dircolors -p` output), and then running and evaluating `dircolors -b`
aidalgol
Is Sketch acting as interactive git help?
heliogabalus
what would be a standard way to name a function in package 'foo' that determines if 'bar' is 'fluffy'? (defun foo-is-bar-fluffy (bar) ...)? do i need -p suffix?
thomasfuston
,channel-wisdom
fsbot
dynamic languages are static languages where someone's spamming the "just shut up and compile" button on the compiler
didi
heliogabalus: Rule: predicates receive a "-p" suffix
If they are multi word. And "p" if not.
Sketch
escondida: my man page for ls says "WHEN can be 'never', 'auto', or 'always'", but ls --color=help lists more options
heliogabalus
didi: don't quite understand
didi
heliogabalus: "understandp"
escondida
Sketch: Oh, interesting.
didi
heliogabalus: "heliogabalus-understand-p"
heliogabalus
ah, i misread "if not" as "is not"
aindilis`
such a relief
         

didi
heliogabalus: The rule from Common LISP is a little moar nuanced, but this is a good rule of thumb.
I just found the manual node where this is explained: (info "(elisp) Coding Conventions")
heliogabalus: ^
heliogabalus
thanks
didi
np
"If the name is one word, add just p; if the name is multiple words, add -p. Examples are framep and frame-live-p."
heliogabalus
also, should i name it as a question ("foo-is-bar-fluffy-p"), as a statement ("foo-bar-is-fluffy-p") or drop "is" altogether ("foo-bar-fluffy-p")?
didi
heliogabalus: Drop the "is".
heliogabalus
ok
parsnip
"is" is implicit in -p ?
Hastouki
is there a quick way to find files in a given dir with emacs?
wgreenhouse
(Action) burps at aidalgol's prodding
aidalgol: warning: contents may be under pressure
bpalmer
Hastouki: sure, I usually would just find a single file int hat directory and then open the others from that buffer using C-x C-f
Hastouki
C-x C-f does the job, but I'm curious if it can be recursive
bpalmer
Hastouki: by default, the default directory for finding files in a buffer visiting file X is X's directory
didi
Hastouki: M-x find-name-dired is a way.
bpalmer
what do you mean by recursive?
Hastouki
say ~/projects/projectA/
and it will perform completion based on all dirs in that root
so if i have src/liba and src/libb and src/*
it will complete based on all
bpalmer
Hastouki: ah. perhaps you may want to look at some of the project solutions out there
wgreenhouse
Hastouki: ido does that after a short timeout (tries to complete in subdirs if nothing shows in the top dir)
but I personally don't like it
it's too DWIMy
bpalmer
such as projectile or helm-project or similar.
wgreenhouse
I do use find-name-dired and C-x d with wildcards fairly often, though
Hastouki
I have dired bound to SHIFT-F1
so I can just navigate etc
was just curious if there was like a "find-anything" type of command
wgreenhouse
the find-*-direds and M-x rgrep are probably the closest in core
danlamanna
helm-locate, and helm-find
pkkm
by the way, do you know a way to disable this in ido? preferably so that it's activated after pressing a key, not a delay.
wgreenhouse
helm, ido, projectile, etc. implement them outside core
pkkm: iirc it's possible to disable the timeout but harder to make the use of recursive find explicit
pkkm: you may find yourself digging around in the function definitions
Hastouki
whats "ido" ?
wgreenhouse
Hastouki: an alternative completion library
supports files and buffers by default
Hastouki
thx
wgreenhouse
and other completions with an extension like ido-hacks
,InteractivelyDoThings
fsbot
InteractivelyDoThings are [0] at http://www.emacswiki.org/emacs/InteractivelyDoThings
[1] an extended reimplementation of iswitchb that also covers operations like opening new files (as well as switching buffers like iswitchb)
[2] M-x finder-commentary RET ido RET
[3] see also ,ido-hacks
Hastouki
ido-dired and dired commands do the same thing in my setup
wgreenhouse
Hastouki: normally you enable ido with ido-mode
I don't think it's intended to use its commands without being in the global minor mode
Hastouki
otherwise it falls back to built-in?
wgreenhouse
Hastouki: I think so. with the minor mode enabled it automatically wraps find-file, dired, etc.
Hastouki
ok
wgreenhouse
so your existing bindings stay the same but the commands they call become idoish
Hastouki
rgrep is pretty nice btw
wgreenhouse
yeah, <3 rgrep
and find-name-dired and find-grep-dired
those are all things I rely on
lhx
Hastouki: a dot file is just a file... not sure what you're concerned about. Just sym link from the repo to the correct place
Hastouki
lhx: I haven't looked through dotfiles yet, but I imagine it helps push hidden config files to github or whatever, didn't know if it will work with entire directories (which mighty be a silly question)
didi
rudybot: Did you know calc has a function for fitting curves?
rudybot
didi: Or as a helper, to make plotting fitting curves easier.
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 next »