equal
deleted
inserted
replaced
874 ) |
874 ) |
875 |
875 |
876 (defun my-file-name-tmp-p (file) |
876 (defun my-file-name-tmp-p (file) |
877 (string-match |
877 (string-match |
878 `,(concat |
878 `,(concat |
879 "\\(?:^#.*#\\|~\\|^.?\\.diff\\|" |
879 "\\(?:^#.*#\\|~\\|" |
880 "\\." (regexp-opt '("base" "local" "orig" "other" "log" "stackdump" "rej")) |
880 "\\." (regexp-opt '("base" "local" "orig" "other" "rej" "diff" "log" "stackdump" "pyc" "pyo")) |
881 "\\)\\'") |
881 "\\)\\'") |
882 (or (and (file-directory-p file) "") (file-name-nondirectory file)))) |
882 (or (and (file-directory-p file) "") (file-name-nondirectory file)))) |
883 |
883 |
884 (defun my-dired-flag-tmp-files () |
884 (defun my-dired-flag-tmp-files () |
885 "Flag all temporary files for deletion." |
885 "Flag all temporary files for deletion." |
2293 (message "python") |
2293 (message "python") |
2294 |
2294 |
2295 (setq python-indent 4) |
2295 (setq python-indent 4) |
2296 |
2296 |
2297 (eval-after-load 'python-mode |
2297 (eval-after-load 'python-mode |
|
2298 (define-key inferior-python-mode-map "\C-c\C-f" 'python-describe-symbol) |
2298 (when (and (boundp 'py-version) (equal py-version "5.1.0")) |
2299 (when (and (boundp 'py-version) (equal py-version "5.1.0")) |
2299 (setq-default py-which-shell py-python-command) |
2300 (setq-default py-which-shell py-python-command) |
2300 ;; (py-toggle-shells 'cpython) |
2301 ;; (py-toggle-shells 'cpython) |
2301 )) |
2302 )) |
2302 |
2303 |